home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Technical Documentation / Mac Tech Notes (DocViewer) / TN-Devices < prev    next >
MacBinary  |  1993-01-05  |  1.1 MB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Tue Dec 22 10:35:37 1992, modified Tue Jan 5 09:54:27 1993, creator 'HLX2', type 'ONLN', 1157752 bytes "TN-Devices" , at 0x11aaf8 32378 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 54 4e 2d 44 65 76 | 69 63 65 73 00 00 00 00 |..TN-Dev|ices....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 11 aa 78 00 | 00 7e 7a a7 5c e6 49 a7 |......x.|.~z.\.I.|
|00000060| 6f 51 a3 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |oQ......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 fb d2 00 00 |........|........|
|00000080| 41 62 73 6f 6c 75 74 65 | 20 50 6f 69 6e 74 69 6e |Absolute| Pointin|
|00000090| 67 20 44 65 76 69 63 65 | 20 4d 65 6d 6f 72 79 20 |g Device| Memory |
|000000a0| 53 74 72 75 63 74 75 72 | 65 0d 44 65 76 69 63 65 |Structur|e.Device|
|000000b0| 73 09 4d 2e 44 56 2e 41 | 62 73 6f 6c 75 74 65 50 |s.M.DV.A|bsoluteP|
|000000c0| 74 44 65 76 0d 52 65 76 | 69 73 65 64 20 62 79 3a |tDev.Rev|ised by:|
|000000d0| 20 44 61 76 65 20 46 6c | 65 63 6b 2c 20 44 6f 6e | Dave Fl|eck, Don|
|000000e0| 20 4b 6f 20 26 20 52 69 | 63 68 61 72 64 20 42 72 | Ko & Ri|chard Br|
|000000f0| 65 65 6e 09 41 70 72 69 | 6c 20 31 39 39 32 0d 57 |een.Apri|l 1992.W|
|00000100| 72 69 74 74 65 6e 20 62 | 79 3a 20 20 44 61 76 69 |ritten b|y: Davi|
|00000110| 64 20 53 74 65 76 65 6e | 73 6f 6e 09 46 65 62 72 |d Steven|son.Febr|
|00000120| 75 61 72 79 20 31 39 39 | 30 0d 54 68 69 73 20 54 |uary 199|0.This T|
|00000130| 65 63 68 6e 69 63 61 6c | 20 4e 6f 74 65 20 73 70 |echnical| Note sp|
|00000140| 65 63 69 66 69 65 73 20 | 61 20 6d 65 6d 6f 72 79 |ecifies |a memory|
|00000150| 20 64 61 74 61 20 73 74 | 72 75 63 74 75 72 65 20 | data st|ructure |
|00000160| 66 6f 72 20 75 73 65 20 | 62 79 20 61 62 73 6f 6c |for use |by absol|
|00000170| 75 74 65 20 70 6f 69 6e | 74 69 6e 67 20 64 65 76 |ute poin|ting dev|
|00000180| 69 63 65 73 3b 20 69 74 | 20 77 61 73 20 64 65 76 |ices; it| was dev|
|00000190| 65 6c 6f 70 65 64 20 66 | 6f 72 20 74 68 65 20 41 |eloped f|or the A|
|000001a0| 70 70 6c 65 20 44 65 73 | 6b 74 6f 70 20 42 75 73 |pple Des|ktop Bus|
|000001b0| 20 28 41 44 42 29 20 62 | 75 74 20 63 6f 75 6c 64 | (ADB) b|ut could|
|000001c0| 20 61 6c 73 6f 20 62 65 | 20 75 73 65 64 20 66 6f | also be| used fo|
|000001d0| 72 20 64 65 76 69 63 65 | 73 20 75 73 69 6e 67 20 |r device|s using |
|000001e0| 73 65 72 69 61 6c 20 69 | 6e 70 75 74 2e 20 47 65 |serial i|nput. Ge|
|000001f0| 6e 65 72 61 6c 6c 79 2c | 20 74 68 69 73 20 64 61 |nerally,| this da|
|00000200| 74 61 20 73 74 72 75 63 | 74 75 72 65 20 69 73 20 |ta struc|ture is |
|00000210| 63 72 65 61 74 65 64 20 | 61 6e 64 20 75 70 64 61 |created |and upda|
|00000220| 74 65 64 20 62 79 20 74 | 68 65 20 70 6f 69 6e 74 |ted by t|he point|
|00000230| 69 6e 67 20 64 65 76 69 | 63 65 d5 73 20 64 72 69 |ing devi|ce.s dri|
|00000240| 76 65 72 20 61 6e 64 20 | 72 65 61 64 20 62 79 20 |ver and |read by |
|00000250| 65 69 74 68 65 72 20 61 | 6e 20 61 70 70 6c 69 63 |either a|n applic|
|00000260| 61 74 69 6f 6e 20 6f 72 | 20 74 68 65 20 73 79 73 |ation or| the sys|
|00000270| 74 65 6d 20 63 75 72 73 | 6f 72 20 72 65 6e 64 65 |tem curs|or rende|
|00000280| 72 69 6e 67 20 73 6f 66 | 74 77 61 72 65 2e 0d 44 |ring sof|tware..D|
|00000290| 65 66 69 6e 69 74 69 6f | 6e 73 0d 54 68 65 20 64 |efinitio|ns.The d|
|000002a0| 61 74 61 20 73 74 72 75 | 63 74 75 72 65 20 73 68 |ata stru|cture sh|
|000002b0| 6f 75 6c 64 20 72 65 73 | 69 64 65 20 69 6e 20 6d |ould res|ide in m|
|000002c0| 65 6d 6f 72 79 20 61 6c | 6c 6f 63 61 74 65 64 20 |emory al|located |
|000002d0| 62 79 20 74 68 65 20 64 | 72 69 76 65 72 20 61 74 |by the d|river at|
|000002e0| 20 69 6e 73 74 61 6c 6c | 61 74 69 6f 6e 20 74 69 | install|ation ti|
|000002f0| 6d 65 2e 0d 41 6e 20 61 | 70 70 6c 69 63 61 74 69 |me..An a|pplicati|
|00000300| 6f 6e 20 73 68 6f 75 6c | 64 20 61 74 74 65 6d 70 |on shoul|d attemp|
|00000310| 74 20 74 6f 20 61 63 63 | 65 73 73 20 74 68 65 20 |t to acc|ess the |
|00000320| 64 61 74 61 20 73 74 72 | 75 63 74 75 72 65 20 76 |data str|ucture v|
|00000330| 69 61 20 61 6e 20 4f 70 | 65 6e 44 72 69 76 65 72 |ia an Op|enDriver|
|00000340| 20 63 61 6c 6c 2c 20 70 | 61 73 73 69 6e 67 20 61 | call, p|assing a|
|00000350| 20 6e 61 6d 65 20 6f 66 | 20 d2 2e 41 50 44 d3 20 | name of| ..APD. |
|00000360| 28 41 62 73 6f 6c 75 74 | 65 20 50 6f 69 6e 74 69 |(Absolut|e Pointi|
|00000370| 6e 67 20 44 65 76 69 63 | 65 29 2e 20 49 66 20 74 |ng Devic|e). If t|
|00000380| 68 65 20 63 61 6c 6c 20 | 69 73 20 73 75 63 63 65 |he call |is succe|
|00000390| 73 73 66 75 6c 2c 20 61 | 20 53 74 61 74 75 73 20 |ssful, a| Status |
|000003a0| 63 61 6c 6c 20 73 68 6f | 75 6c 64 20 74 68 65 6e |call sho|uld then|
|000003b0| 20 62 65 20 69 73 73 75 | 65 64 2c 20 70 61 73 73 | be issu|ed, pass|
|000003c0| 69 6e 67 20 61 20 63 6f | 64 65 20 6f 66 20 32 30 |ing a co|de of 20|
|000003d0| 20 61 6e 64 20 61 20 70 | 6f 69 6e 74 65 72 20 74 | and a p|ointer t|
|000003e0| 6f 20 61 20 6c 6f 6e 67 | 77 6f 72 64 20 77 68 65 |o a long|word whe|
|000003f0| 72 65 20 74 68 65 20 61 | 64 64 72 65 73 73 20 6f |re the a|ddress o|
|00000400| 66 20 74 68 65 20 64 61 | 74 61 20 73 74 72 75 63 |f the da|ta struc|
|00000410| 74 75 72 65 20 77 69 6c | 6c 20 62 65 20 72 65 74 |ture wil|l be ret|
|00000420| 75 72 6e 65 64 2e 0d 49 | 66 20 74 68 65 20 4f 70 |urned..I|f the Op|
|00000430| 65 6e 44 72 69 76 65 72 | 20 63 61 6c 6c 20 66 61 |enDriver| call fa|
|00000440| 69 6c 73 2c 20 61 20 47 | 65 74 41 44 42 49 6e 66 |ils, a G|etADBInf|
|00000450| 6f 20 63 61 6c 6c 20 73 | 68 6f 75 6c 64 20 62 65 |o call s|hould be|
|00000460| 20 69 73 73 75 65 64 20 | 61 73 20 64 65 73 63 72 | issued |as descr|
|00000470| 69 62 65 64 20 62 65 6c | 6f 77 2e 0d 46 6f 72 20 |ibed bel|ow..For |
|00000480| 61 6e 20 41 44 42 20 70 | 6f 69 6e 74 69 6e 67 20 |an ADB p|ointing |
|00000490| 64 65 76 69 63 65 20 64 | 72 69 76 65 72 2c 20 74 |device d|river, t|
|000004a0| 68 69 73 20 73 74 72 75 | 63 74 75 72 65 20 73 68 |his stru|cture sh|
|000004b0| 6f 75 6c 64 20 62 65 20 | 70 6f 69 6e 74 65 64 20 |ould be |pointed |
|000004c0| 74 6f 20 62 79 20 74 68 | 65 20 d2 6f 70 74 69 6f |to by th|e .optio|
|000004d0| 6e 61 6c 20 64 61 74 61 | 20 61 72 65 61 d3 20 50 |nal data| area. P|
|000004e0| 6f 69 6e 74 65 72 20 77 | 68 69 63 68 20 69 73 20 |ointer w|hich is |
|000004f0| 70 61 73 73 65 64 20 74 | 6f 20 5f 53 65 74 41 44 |passed t|o _SetAD|
|00000500| 42 49 6e 66 6f 2e 20 53 | 79 73 74 65 6d 20 73 6f |BInfo. S|ystem so|
|00000510| 66 74 77 61 72 65 20 61 | 6e 64 20 61 70 70 6c 69 |ftware a|nd appli|
|00000520| 63 61 74 69 6f 6e 20 73 | 6f 66 74 77 61 72 65 20 |cation s|oftware |
|00000530| 63 61 6e 20 74 68 65 6e | 20 66 69 6e 64 20 74 68 |can then| find th|
|00000540| 69 73 20 64 61 74 61 20 | 73 74 72 75 63 74 75 72 |is data |structur|
|00000550| 65 20 62 79 20 63 61 6c | 6c 69 6e 67 20 5f 47 65 |e by cal|ling _Ge|
|00000560| 74 41 44 42 49 6e 66 6f | 20 77 69 74 68 20 61 6e |tADBInfo| with an|
|00000570| 20 41 44 42 20 64 65 76 | 69 63 65 20 61 64 64 72 | ADB dev|ice addr|
|00000580| 65 73 73 20 6f 66 20 34 | 20 61 6e 64 20 64 65 72 |ess of 4| and der|
|00000590| 65 66 65 72 65 6e 63 69 | 6e 67 20 74 68 65 20 64 |eferenci|ng the d|
|000005a0| 61 74 61 20 61 72 65 61 | 20 70 6f 69 6e 74 65 72 |ata area| pointer|
|000005b0| 2e 0d 50 6f 69 6e 74 69 | 6e 67 20 64 65 76 69 63 |..Pointi|ng devic|
|000005c0| 65 73 20 61 6e 64 20 64 | 72 69 76 65 72 73 20 74 |es and d|rivers t|
|000005d0| 68 61 74 20 73 75 70 70 | 6f 72 74 20 74 68 69 73 |hat supp|ort this|
|000005e0| 20 64 61 74 61 20 73 74 | 72 75 63 74 75 72 65 20 | data st|ructure |
|000005f0| 73 68 6f 75 6c 64 20 69 | 6e 64 69 63 61 74 65 20 |should i|ndicate |
|00000600| 74 68 61 74 20 74 68 65 | 79 20 64 6f 20 73 6f 20 |that the|y do so |
|00000610| 62 79 20 70 72 6f 76 69 | 64 69 6e 67 20 74 68 65 |by provi|ding the|
|00000620| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 69 64 65 6e 74 | followi|ng ident|
|00000630| 69 66 69 63 61 74 69 6f | 6e 3a 20 74 68 65 20 41 |ificatio|n: the A|
|00000640| 53 43 49 49 20 63 68 61 | 72 61 63 74 65 72 73 20 |SCII cha|racters |
|00000650| 27 54 42 4c 54 27 20 69 | 6e 20 74 68 65 20 74 65 |'TBLT' i|n the te|
|00000660| 6e 74 68 20 6c 6f 6e 67 | 77 6f 72 64 20 6f 66 20 |nth long|word of |
|00000670| 74 68 65 20 68 65 61 64 | 65 72 20 61 6e 64 20 74 |the head|er and t|
|00000680| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 68 65 |he numbe|r of the|
|00000690| 20 70 61 72 74 69 63 75 | 6c 61 72 20 76 65 72 73 | particu|lar vers|
|000006a0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 73 74 72 75 63 |ion of t|he struc|
|000006b0| 74 75 72 65 20 74 68 65 | 20 64 72 69 76 65 72 20 |ture the| driver |
|000006c0| 73 75 70 70 6f 72 74 73 | 20 69 6e 20 74 68 65 20 |supports| in the |
|000006d0| 76 65 72 73 69 6f 6e 20 | 66 69 65 6c 64 20 6f 66 |version |field of|
|000006e0| 20 74 68 65 20 66 69 72 | 73 74 20 6c 6f 6e 67 77 | the fir|st longw|
|000006f0| 6f 72 64 20 6f 66 20 74 | 68 65 20 68 65 61 64 65 |ord of t|he heade|
|00000700| 72 2e 20 46 69 67 75 72 | 65 20 31 20 73 68 6f 77 |r. Figur|e 1 show|
|00000710| 73 20 74 68 65 20 66 6f | 72 6d 61 74 20 6f 66 20 |s the fo|rmat of |
|00000720| 61 20 6c 6f 6e 67 77 6f | 72 64 2e 0d 46 69 67 75 |a longwo|rd..Figu|
|00000730| 72 65 20 31 20 46 6f 72 | 6d 61 74 20 6f 66 20 61 |re 1 For|mat of a|
|00000740| 20 4c 6f 6e 67 77 6f 72 | 64 20 20 0d 42 69 74 20 | Longwor|d .Bit |
|00000750| 66 69 65 6c 64 73 20 77 | 69 74 68 69 6e 20 61 20 |fields w|ithin a |
|00000760| 6c 6f 6e 67 77 6f 72 64 | 20 61 72 65 20 73 70 65 |longword| are spe|
|00000770| 63 69 66 69 65 64 20 62 | 79 20 61 2d 62 20 77 68 |cified b|y a-b wh|
|00000780| 65 72 65 20 61 20 69 73 | 20 74 68 65 20 6c 65 66 |ere a is| the lef|
|00000790| 74 6d 6f 73 74 20 62 69 | 74 20 61 6e 64 20 62 20 |tmost bi|t and b |
|000007a0| 69 73 20 74 68 65 20 72 | 69 67 68 74 6d 6f 73 74 |is the r|ightmost|
|000007b0| 20 62 69 74 3b 20 66 6f | 72 20 65 78 61 6d 70 6c | bit; fo|r exampl|
|000007c0| 65 2c 20 37 d0 30 20 73 | 70 65 63 69 66 69 65 73 |e, 7.0 s|pecifies|
|000007d0| 20 74 68 65 20 66 6f 75 | 72 74 68 20 6c 65 61 73 | the fou|rth leas|
|000007e0| 74 20 73 69 67 6e 69 66 | 69 63 61 6e 74 20 62 79 |t signif|icant by|
|000007f0| 74 65 20 69 6e 20 74 68 | 65 20 6c 6f 6e 67 77 6f |te in th|e longwo|
|00000800| 72 64 2e 0d 54 68 65 20 | 64 61 74 61 20 73 74 72 |rd..The |data str|
|00000810| 75 63 74 75 72 65 20 66 | 6f 72 20 74 61 62 6c 65 |ucture f|or table|
|00000820| 74 73 20 61 6e 64 20 6f | 74 68 65 72 20 61 62 73 |ts and o|ther abs|
|00000830| 6f 6c 75 74 65 20 70 6f | 69 6e 74 69 6e 67 20 64 |olute po|inting d|
|00000840| 65 76 69 63 65 73 20 63 | 6f 6e 73 69 73 74 73 20 |evices c|onsists |
|00000850| 6f 66 20 61 20 34 30 2d | 62 79 74 65 20 68 65 61 |of a 40-|byte hea|
|00000860| 64 65 72 20 70 6c 75 73 | 20 6f 6e 65 20 36 30 2d |der plus| one 60-|
|00000870| 62 79 74 65 20 62 6c 6f | 63 6b 20 70 65 72 20 63 |byte blo|ck per c|
|00000880| 75 72 73 6f 72 2e 20 54 | 68 65 20 68 65 61 64 65 |ursor. T|he heade|
|00000890| 72 20 63 6f 6e 74 61 69 | 6e 73 20 61 20 70 6f 69 |r contai|ns a poi|
|000008a0| 6e 74 65 72 20 74 68 61 | 74 20 63 61 6e 20 62 65 |nter tha|t can be|
|000008b0| 20 75 73 65 64 20 74 6f | 20 65 78 74 65 6e 64 20 | used to| extend |
|000008c0| 74 68 69 73 20 73 74 72 | 75 63 74 75 72 65 20 74 |this str|ucture t|
|000008d0| 6f 20 63 6f 6e 74 61 69 | 6e 20 61 64 64 69 74 69 |o contai|n additi|
|000008e0| 6f 6e 61 6c 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |onal inf|ormation|
|000008f0| 20 73 75 70 70 6c 69 65 | 64 20 62 79 20 70 61 72 | supplie|d by par|
|00000900| 74 69 63 75 6c 61 72 20 | 64 65 76 69 63 65 73 2e |ticular |devices.|
|00000910| 0d 48 65 61 64 65 72 0d | 54 68 65 20 66 69 72 73 |.Header.|The firs|
|00000920| 74 20 6c 6f 6e 67 77 6f | 72 64 20 6f 66 20 74 68 |t longwo|rd of th|
|00000930| 65 20 68 65 61 64 65 72 | 20 63 6f 6e 73 69 73 74 |e header| consist|
|00000940| 73 20 6f 66 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |s of the| followi|
|00000950| 6e 67 2c 20 61 73 20 69 | 6c 6c 75 73 74 72 61 74 |ng, as i|llustrat|
|00000960| 65 64 20 69 6e 20 46 69 | 67 75 72 65 20 32 3a 20 |ed in Fi|gure 2: |
|00000970| 64 61 74 61 20 73 74 72 | 75 63 74 75 72 65 20 76 |data str|ucture v|
|00000980| 65 72 73 69 6f 6e 20 6e | 75 6d 62 65 72 2c 20 73 |ersion n|umber, s|
|00000990| 79 6e 63 68 72 6f 6e 69 | 7a 61 74 69 6f 6e 20 73 |ynchroni|zation s|
|000009a0| 65 6d 61 70 68 6f 72 65 | 2c 20 6e 75 6d 62 65 72 |emaphore|, number|
|000009b0| 20 6f 66 20 63 75 72 73 | 6f 72 73 2c 20 75 70 64 | of curs|ors, upd|
|000009c0| 61 74 65 20 66 6c 61 67 | 73 2e 0d 46 69 67 75 72 |ate flag|s..Figur|
|000009d0| 65 20 32 20 46 6f 72 6d | 61 74 20 6f 66 20 48 65 |e 2 Form|at of He|
|000009e0| 61 64 65 72 d5 73 20 46 | 69 72 73 74 20 4c 6f 6e |ader.s F|irst Lon|
|000009f0| 67 77 6f 72 64 20 20 0d | 41 6e 20 65 69 67 68 74 |gword .|An eight|
|00000a00| 2d 62 69 74 20 66 69 65 | 6c 64 20 28 76 65 72 73 |-bit fie|ld (vers|
|00000a10| 69 6f 6e 2c 20 62 69 74 | 73 20 33 31 d0 32 34 29 |ion, bit|s 31.24)|
|00000a20| 20 69 6e 64 69 63 61 74 | 65 73 20 74 68 65 20 76 | indicat|es the v|
|00000a30| 65 72 73 69 6f 6e 20 6e | 75 6d 62 65 72 20 6f 66 |ersion n|umber of|
|00000a40| 20 74 68 65 20 64 61 74 | 61 20 73 74 72 75 63 74 | the dat|a struct|
|00000a50| 75 72 65 20 66 6f 72 6d | 61 74 3a 20 61 20 76 61 |ure form|at: a va|
|00000a60| 6c 75 65 20 6f 66 20 61 | 6c 6c 20 7a 65 72 6f 73 |lue of a|ll zeros|
|00000a70| 20 6f 72 20 61 6c 6c 20 | 6f 6e 65 73 20 69 73 20 | or all |ones is |
|00000a80| 69 6e 76 61 6c 69 64 20 | 61 6e 64 20 69 6e 64 69 |invalid |and indi|
|00000a90| 63 61 74 65 73 20 61 6e | 20 75 6e 69 6e 69 74 69 |cates an| uniniti|
|00000aa0| 61 6c 69 7a 65 64 20 6f | 72 20 70 6f 73 73 69 62 |alized o|r possib|
|00000ab0| 6c 79 20 63 6f 72 72 75 | 70 74 65 64 20 64 61 74 |ly corru|pted dat|
|00000ac0| 61 20 73 74 72 75 63 74 | 75 72 65 3b 20 61 20 76 |a struct|ure; a v|
|00000ad0| 61 6c 75 65 20 6f 66 20 | 32 20 69 6e 64 69 63 61 |alue of |2 indica|
|00000ae0| 74 65 73 20 74 68 61 74 | 20 74 68 65 20 66 6f 72 |tes that| the for|
|00000af0| 6d 61 74 20 69 73 20 74 | 68 65 20 6f 6e 65 20 68 |mat is t|he one h|
|00000b00| 65 72 65 2e 20 54 68 65 | 20 73 65 63 6f 6e 64 20 |ere. The| second |
|00000b10| 65 69 67 68 74 2d 62 69 | 74 20 66 69 65 6c 64 20 |eight-bi|t field |
|00000b20| 28 73 65 6d 61 70 68 6f | 72 65 2c 20 62 69 74 73 |(semapho|re, bits|
|00000b30| 20 32 33 d0 31 36 29 20 | 69 73 20 75 73 65 64 20 | 23.16) |is used |
|00000b40| 61 73 20 61 20 73 65 6d | 61 70 68 6f 72 65 20 74 |as a sem|aphore t|
|00000b50| 6f 20 63 6f 6f 72 64 69 | 6e 61 74 65 20 61 63 63 |o coordi|nate acc|
|00000b60| 65 73 73 20 74 6f 20 74 | 68 69 73 20 64 61 74 61 |ess to t|his data|
|00000b70| 20 73 74 72 75 63 74 75 | 72 65 20 61 6d 6f 6e 67 | structu|re among|
|00000b80| 20 6d 75 6c 74 69 70 6c | 65 20 70 72 6f 63 65 73 | multipl|e proces|
|00000b90| 73 65 73 2e 20 28 54 68 | 65 72 65 20 69 73 20 63 |ses. (Th|ere is c|
|00000ba0| 75 72 72 65 6e 74 6c 79 | 20 6e 6f 20 6f 70 65 72 |urrently| no oper|
|00000bb0| 61 74 69 6e 67 20 73 79 | 73 74 65 6d 20 73 75 70 |ating sy|stem sup|
|00000bc0| 70 6f 72 74 20 66 6f 72 | 20 6d 75 6c 74 69 70 6c |port for| multipl|
|00000bd0| 65 20 70 72 6f 63 65 73 | 73 65 73 20 73 79 6e 63 |e proces|ses sync|
|00000be0| 68 72 6f 6e 69 7a 69 6e | 67 20 62 79 20 75 73 69 |hronizin|g by usi|
|00000bf0| 6e 67 20 61 20 73 65 6d | 61 70 68 6f 72 65 2e 29 |ng a sem|aphore.)|
|00000c00| 20 54 68 65 20 74 68 69 | 72 64 20 65 69 67 68 74 | The thi|rd eight|
|00000c10| 2d 62 69 74 20 66 69 65 | 6c 64 20 28 63 75 72 73 |-bit fie|ld (curs|
|00000c20| 6f 72 73 2c 20 62 69 74 | 73 20 31 35 d0 38 29 20 |ors, bit|s 15.8) |
|00000c30| 69 6e 64 69 63 61 74 65 | 73 20 74 68 65 20 6e 75 |indicate|s the nu|
|00000c40| 6d 62 65 72 20 6f 66 20 | 63 75 72 73 6f 72 73 20 |mber of |cursors |
|00000c50| 6f 6e 20 74 68 65 20 64 | 65 76 69 63 65 2e 20 54 |on the d|evice. T|
|00000c60| 77 6f 20 70 61 69 72 73 | 20 6f 66 20 66 6c 61 67 |wo pairs| of flag|
|00000c70| 73 20 61 72 65 20 75 73 | 65 64 20 74 6f 20 69 6e |s are us|ed to in|
|00000c80| 64 69 63 61 74 65 20 75 | 70 64 61 74 65 64 20 69 |dicate u|pdated i|
|00000c90| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 28 6e 65 77 20 |nformati|on (new |
|00000ca0| 61 74 74 72 69 62 75 74 | 65 73 20 28 61 29 20 6f |attribut|es (a) o|
|00000cb0| 72 20 6e 65 77 20 64 61 | 74 61 20 28 64 29 29 3a |r new da|ta (d)):|
|00000cc0| 20 20 6f 6e 65 20 70 61 | 69 72 20 28 61 70 70 20 | one pa|ir (app |
|00000cd0| 61 2c 20 62 69 74 20 37 | 2c 20 61 6e 64 20 61 70 |a, bit 7|, and ap|
|00000ce0| 70 20 64 2c 20 62 69 74 | 20 36 29 20 69 73 20 73 |p d, bit| 6) is s|
|00000cf0| 65 74 20 62 79 20 74 68 | 65 20 61 70 70 6c 69 63 |et by th|e applic|
|00000d00| 61 74 69 6f 6e 20 61 6e | 64 20 72 65 61 64 20 61 |ation an|d read a|
|00000d10| 6e 64 20 63 6c 65 61 72 | 65 64 20 62 79 20 74 68 |nd clear|ed by th|
|00000d20| 65 20 64 65 76 69 63 65 | 20 64 72 69 76 65 72 2c |e device| driver,|
|00000d30| 20 77 68 69 6c 65 20 74 | 68 65 20 6f 74 68 65 72 | while t|he other|
|00000d40| 20 70 61 69 72 20 28 64 | 65 76 20 61 2c 20 62 69 | pair (d|ev a, bi|
|00000d50| 74 20 33 2c 20 61 6e 64 | 20 64 65 76 20 64 2c 20 |t 3, and| dev d, |
|00000d60| 62 69 74 20 32 29 20 69 | 73 20 73 65 74 20 62 79 |bit 2) i|s set by|
|00000d70| 20 74 68 65 20 64 72 69 | 76 65 72 20 61 6e 64 20 | the dri|ver and |
|00000d80| 72 65 61 64 20 61 6e 64 | 20 63 6c 65 61 72 65 64 |read and| cleared|
|00000d90| 20 62 79 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 | by the |applicat|
|00000da0| 69 6f 6e 2e 20 4f 74 68 | 65 72 20 62 69 74 73 20 |ion. Oth|er bits |
|00000db0| 69 6e 20 74 68 65 20 66 | 6f 75 72 74 68 20 62 79 |in the f|ourth by|
|00000dc0| 74 65 20 28 62 69 74 73 | 20 35 d0 34 20 61 6e 64 |te (bits| 5.4 and|
|00000dd0| 20 31 d0 30 29 20 6d 75 | 73 74 20 62 65 20 7a 65 | 1.0) mu|st be ze|
|00000de0| 72 6f 2e 0d 54 68 65 20 | 73 65 63 6f 6e 64 20 6c |ro..The |second l|
|00000df0| 6f 6e 67 77 6f 72 64 20 | 6f 66 20 74 68 65 20 68 |ongword |of the h|
|00000e00| 65 61 64 65 72 20 63 6f | 6e 74 61 69 6e 73 20 74 |eader co|ntains t|
|00000e10| 68 65 20 72 65 73 6f 6c | 75 74 69 6f 6e 2e 0d 46 |he resol|ution..F|
|00000e20| 69 67 75 72 65 20 33 20 | 46 6f 72 6d 61 74 20 6f |igure 3 |Format o|
|00000e30| 66 20 48 65 61 64 65 72 | d5 73 20 53 65 63 6f 6e |f Header|.s Secon|
|00000e40| 64 20 4c 6f 6e 67 77 6f | 72 64 20 20 0d 41 6e 20 |d Longwo|rd .An |
|00000e50| 45 6e 67 6c 69 73 68 20 | 61 6e 64 20 6d 65 74 72 |English |and metr|
|00000e60| 69 63 20 66 6c 61 67 20 | 28 6d 2c 20 62 69 74 20 |ic flag |(m, bit |
|00000e70| 33 31 29 20 69 6e 64 69 | 63 61 74 65 73 20 77 68 |31) indi|cates wh|
|00000e80| 65 74 68 65 72 20 6d 65 | 61 73 75 72 65 6d 65 6e |ether me|asuremen|
|00000e90| 74 73 20 61 72 65 20 69 | 6e 20 45 6e 67 6c 69 73 |ts are i|n Englis|
|00000ea0| 68 20 28 74 68 65 20 62 | 69 74 20 69 73 20 61 20 |h (the b|it is a |
|00000eb0| 30 29 20 6f 72 20 6d 65 | 74 72 69 63 20 28 74 68 |0) or me|tric (th|
|00000ec0| 65 20 62 69 74 20 69 73 | 20 61 20 31 29 20 75 6e |e bit is| a 1) un|
|00000ed0| 69 74 73 2e 20 4f 74 68 | 65 72 20 62 69 74 73 20 |its. Oth|er bits |
|00000ee0| 69 6e 20 74 68 65 20 66 | 69 72 73 74 20 62 79 74 |in the f|irst byt|
|00000ef0| 65 20 28 62 69 74 73 20 | 33 30 d0 32 38 29 20 6d |e (bits |30.28) m|
|00000f00| 75 73 74 20 62 65 20 7a | 65 72 6f 2e 20 41 20 31 |ust be z|ero. A 1|
|00000f10| 32 2d 62 69 74 20 66 69 | 65 6c 64 20 28 61 6e 67 |2-bit fi|eld (ang|
|00000f20| 75 6c 61 72 2c 20 62 69 | 74 73 20 32 37 d0 31 36 |ular, bi|ts 27.16|
|00000f30| 29 20 69 6e 64 69 63 61 | 74 65 73 20 74 68 65 20 |) indica|tes the |
|00000f40| 61 6e 67 75 6c 61 72 20 | 72 65 73 6f 6c 75 74 69 |angular |resoluti|
|00000f50| 6f 6e 20 73 65 6e 73 65 | 64 20 62 79 20 74 68 65 |on sense|d by the|
|00000f60| 20 70 6f 69 6e 74 69 6e | 67 20 64 65 76 69 63 65 | pointin|g device|
|00000f70| 3b 20 74 68 65 20 76 61 | 6c 75 65 20 69 6e 20 74 |; the va|lue in t|
|00000f80| 68 69 73 20 66 69 65 6c | 64 20 69 6e 64 69 63 61 |his fiel|d indica|
|00000f90| 74 65 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |tes the |number o|
|00000fa0| 66 20 61 6e 67 75 6c 61 | 72 20 69 6e 63 6c 69 6e |f angula|r inclin|
|00000fb0| 61 74 69 6f 6e 73 20 74 | 68 61 74 20 63 61 6e 20 |ations t|hat can |
|00000fc0| 62 65 20 73 65 6e 73 65 | 64 3b 20 74 68 65 20 61 |be sense|d; the a|
|00000fd0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 63 61 6e 20 6d |pplicati|on can m|
|00000fe0| 61 70 20 74 68 69 73 20 | 72 61 6e 67 65 20 69 6e |ap this |range in|
|00000ff0| 74 6f 20 61 20 66 75 6c | 6c 20 33 36 30 a1 2c 20 |to a ful|l 360., |
|00001000| 31 38 30 a1 2c 20 6f 72 | 20 61 63 74 75 61 6c 20 |180., or| actual |
|00001010| 69 6e 63 6c 69 6e 61 74 | 69 6f 6e 20 72 61 6e 67 |inclinat|ion rang|
|00001020| 65 20 6f 66 20 74 68 65 | 20 64 65 76 69 63 65 20 |e of the| device |
|00001030| 28 74 68 69 73 20 66 69 | 65 6c 64 20 69 73 20 6d |(this fi|eld is m|
|00001040| 65 61 6e 69 6e 67 66 75 | 6c 20 6f 6e 6c 79 20 69 |eaningfu|l only i|
|00001050| 66 20 74 68 65 20 6f 72 | 69 65 6e 74 61 74 69 6f |f the or|ientatio|
|00001060| 6e 20 66 6f 72 6d 61 74 | 20 72 65 70 6f 72 74 73 |n format| reports|
|00001070| 20 61 6e 67 75 6c 61 72 | 20 6d 65 61 73 75 72 65 | angular| measure|
|00001080| 2c 20 74 68 61 74 20 69 | 73 2c 20 69 66 20 74 69 |, that i|s, if ti|
|00001090| 6c 74 20 6f 72 20 61 6e | 20 61 74 74 69 74 75 64 |lt or an| attitud|
|000010a0| 65 20 6d 61 74 72 69 78 | 20 69 73 20 73 75 70 70 |e matrix| is supp|
|000010b0| 6f 72 74 65 64 29 2e 20 | 41 20 31 36 2d 62 69 74 |orted). |A 16-bit|
|000010c0| 20 66 69 65 6c 64 20 28 | 73 70 61 63 65 2c 20 62 | field (|space, b|
|000010d0| 69 74 73 20 31 35 d0 30 | 29 20 73 70 65 63 69 66 |its 15.0|) specif|
|000010e0| 69 65 73 20 74 68 65 20 | 73 70 61 74 69 61 6c 20 |ies the |spatial |
|000010f0| 72 65 73 6f 6c 75 74 69 | 6f 6e 20 6f 66 20 74 68 |resoluti|on of th|
|00001100| 65 20 64 65 76 69 63 65 | 20 28 74 68 65 20 75 6e |e device| (the un|
|00001110| 69 74 73 20 6f 66 20 6d | 65 61 73 75 72 65 20 75 |its of m|easure u|
|00001120| 73 65 64 20 74 6f 20 73 | 70 65 63 69 66 79 20 74 |sed to s|pecify t|
|00001130| 68 65 20 64 69 6d 65 6e | 73 69 6f 6e 20 6f 66 20 |he dimen|sion of |
|00001140| 74 68 65 20 73 65 6e 73 | 65 20 61 72 65 61 20 61 |the sens|e area a|
|00001150| 6e 64 20 6f 72 69 67 69 | 6e 20 6f 66 66 73 65 74 |nd origi|n offset|
|00001160| 20 28 64 69 73 70 6c 61 | 63 65 6d 65 6e 74 29 20 | (displa|cement) |
|00001170| 20 6c 6f 6e 67 77 6f 72 | 64 73 20 69 6e 20 74 68 | longwor|ds in th|
|00001180| 65 20 68 65 61 64 65 72 | 20 61 6e 64 20 69 6e 20 |e header| and in |
|00001190| 74 68 65 20 63 6f 6f 72 | 64 69 6e 61 74 65 20 6c |the coor|dinate l|
|000011a0| 6f 6e 67 77 6f 72 64 73 | 20 69 6e 20 74 68 65 20 |ongwords| in the |
|000011b0| 63 75 72 73 6f 72 20 62 | 6c 6f 63 6b 73 3a 20 20 |cursor b|locks: |
|000011c0| 75 6e 69 74 73 20 70 65 | 72 20 69 6e 63 68 20 66 |units pe|r inch f|
|000011d0| 6f 72 20 45 6e 67 6c 69 | 73 68 20 61 6e 64 20 75 |or Engli|sh and u|
|000011e0| 6e 69 74 73 20 70 65 72 | 20 63 65 6e 74 69 6d 65 |nits per| centime|
|000011f0| 74 65 72 20 66 6f 72 20 | 6d 65 74 72 69 63 29 2e |ter for |metric).|
|00001200| 20 54 68 75 73 2c 20 66 | 6f 72 20 65 78 61 6d 70 | Thus, f|or examp|
|00001210| 6c 65 2c 20 31 30 30 30 | 20 69 6e 20 74 68 69 73 |le, 1000| in this|
|00001220| 20 66 69 65 6c 64 20 77 | 6f 75 6c 64 20 69 6e 64 | field w|ould ind|
|00001230| 69 63 61 74 65 20 74 68 | 61 74 20 64 69 6d 65 6e |icate th|at dimen|
|00001240| 73 69 6f 6e 73 20 61 72 | 65 20 73 70 65 63 69 66 |sions ar|e specif|
|00001250| 69 65 64 20 69 6e 20 30 | 2e 30 30 31 20 69 6e 63 |ied in 0|.001 inc|
|00001260| 68 65 73 2e 0d 54 68 65 | 20 74 68 69 72 64 20 6c |hes..The| third l|
|00001270| 6f 6e 67 77 6f 72 64 20 | 6f 66 20 74 68 65 20 68 |ongword |of the h|
|00001280| 65 61 64 65 72 20 63 6f | 6e 74 61 69 6e 73 20 74 |eader co|ntains t|
|00001290| 68 65 20 58 20 61 78 69 | 73 20 64 69 6d 65 6e 73 |he X axi|s dimens|
|000012a0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 73 65 6e 73 65 |ion of t|he sense|
|000012b0| 20 61 72 65 61 2c 20 74 | 68 65 20 66 6f 75 72 74 | area, t|he fourt|
|000012c0| 68 20 6c 6f 6e 67 77 6f | 72 64 20 74 68 65 20 59 |h longwo|rd the Y|
|000012d0| 20 61 78 69 73 20 64 69 | 6d 65 6e 73 69 6f 6e 20 | axis di|mension |
|000012e0| 6f 66 20 74 68 65 20 73 | 65 6e 73 65 20 61 72 65 |of the s|ense are|
|000012f0| 61 2c 20 61 6e 64 20 74 | 68 65 20 66 69 66 74 68 |a, and t|he fifth|
|00001300| 20 6c 6f 6e 67 77 6f 72 | 64 20 74 68 65 20 5a 20 | longwor|d the Z |
|00001310| 61 78 69 73 20 64 69 6d | 65 6e 73 69 6f 6e 20 6f |axis dim|ension o|
|00001320| 66 20 74 68 65 20 73 65 | 6e 73 65 20 61 72 65 61 |f the se|nse area|
|00001330| 2e 20 28 49 66 20 61 20 | 74 61 62 6c 65 74 20 73 |. (If a |tablet s|
|00001340| 75 70 70 6f 72 74 73 20 | 62 6f 74 68 20 70 6f 72 |upports |both por|
|00001350| 74 72 61 69 74 20 61 6e | 64 20 6c 61 6e 64 73 63 |trait an|d landsc|
|00001360| 61 70 65 20 6d 6f 64 65 | 73 2c 20 74 68 69 73 20 |ape mode|s, this |
|00001370| 69 73 20 72 65 66 6c 65 | 63 74 65 64 20 69 6e 20 |is refle|cted in |
|00001380| 74 68 65 20 76 61 6c 75 | 65 73 20 69 6e 20 74 68 |the valu|es in th|
|00001390| 65 20 58 20 61 6e 64 20 | 59 20 64 69 6d 65 6e 73 |e X and |Y dimens|
|000013a0| 69 6f 6e 73 2e 29 0d 54 | 68 65 20 73 69 78 74 68 |ions.).T|he sixth|
|000013b0| 20 6c 6f 6e 67 77 6f 72 | 64 20 6f 66 20 74 68 65 | longwor|d of the|
|000013c0| 20 68 65 61 64 65 72 20 | 63 6f 6e 74 61 69 6e 73 | header |contains|
|000013d0| 20 74 68 65 20 58 20 61 | 78 69 73 20 64 69 73 70 | the X a|xis disp|
|000013e0| 6c 61 63 65 6d 65 6e 74 | 20 6f 66 20 74 68 65 20 |lacement| of the |
|000013f0| 73 65 6e 73 65 20 61 72 | 65 61 2c 20 74 68 65 20 |sense ar|ea, the |
|00001400| 73 65 76 65 6e 74 68 20 | 6c 6f 6e 67 77 6f 72 64 |seventh |longword|
|00001410| 20 74 68 65 20 59 20 61 | 78 69 73 20 64 69 73 70 | the Y a|xis disp|
|00001420| 6c 61 63 65 6d 65 6e 74 | 20 6f 66 20 74 68 65 20 |lacement| of the |
|00001430| 73 65 6e 73 65 20 61 72 | 65 61 2c 20 61 6e 64 20 |sense ar|ea, and |
|00001440| 74 68 65 20 65 69 67 68 | 74 68 20 6c 6f 6e 67 77 |the eigh|th longw|
|00001450| 6f 72 64 20 74 68 65 20 | 5a 20 61 78 69 73 20 64 |ord the |Z axis d|
|00001460| 69 73 70 6c 61 63 65 6d | 65 6e 74 20 6f 66 20 74 |isplacem|ent of t|
|00001470| 68 65 20 73 65 6e 73 65 | 20 61 72 65 61 2e 20 54 |he sense| area. T|
|00001480| 68 65 73 65 20 61 78 69 | 73 20 64 69 73 70 6c 61 |hese axi|s displa|
|00001490| 63 65 6d 65 6e 74 73 20 | 73 70 65 63 69 66 79 20 |cements |specify |
|000014a0| 74 68 65 20 58 2c 20 59 | 2c 20 61 6e 64 20 5a 20 |the X, Y|, and Z |
|000014b0| 63 6f 6f 72 64 69 6e 61 | 74 65 20 76 61 6c 75 65 |coordina|te value|
|000014c0| 73 2c 20 72 65 73 70 65 | 63 74 69 76 65 6c 79 2c |s, respe|ctively,|
|000014d0| 20 61 74 20 74 68 65 20 | 73 65 6e 73 65 20 61 72 | at the |sense ar|
|000014e0| 65 61 20 6f 72 69 67 69 | 6e 2e 20 54 68 65 20 73 |ea origi|n. The s|
|000014f0| 65 6e 73 65 20 61 72 65 | 61 20 6f 72 69 67 69 6e |ense are|a origin|
|00001500| 20 69 73 20 61 74 20 74 | 68 65 20 6c 6f 77 65 72 | is at t|he lower|
|00001510| 20 6c 65 66 74 20 69 6e | 20 61 20 32 2d 44 20 73 | left in| a 2-D s|
|00001520| 65 6e 73 65 20 61 72 65 | 61 20 73 75 63 68 20 61 |ense are|a such a|
|00001530| 73 20 61 20 74 61 62 6c | 65 74 2e 20 54 68 65 20 |s a tabl|et. The |
|00001540| 64 69 6d 65 6e 73 69 6f | 6e 73 20 6f 66 20 74 68 |dimensio|ns of th|
|00001550| 65 20 73 65 6e 73 65 20 | 61 72 65 61 20 61 72 65 |e sense |area are|
|00001560| 20 66 72 6f 6d 20 61 20 | 72 65 66 65 72 65 6e 63 | from a |referenc|
|00001570| 65 20 70 6f 69 6e 74 3b | 20 74 68 65 20 64 69 73 |e point;| the dis|
|00001580| 70 6c 61 63 65 6d 65 6e | 74 73 20 61 72 65 20 74 |placemen|ts are t|
|00001590| 68 65 20 6d 69 6e 69 6d | 75 6d 20 76 61 6c 75 65 |he minim|um value|
|000015a0| 73 20 74 68 65 20 64 65 | 76 69 63 65 20 72 65 74 |s the de|vice ret|
|000015b0| 75 72 6e 73 2e 0d 54 68 | 65 20 6e 69 6e 74 68 20 |urns..Th|e ninth |
|000015c0| 6c 6f 6e 67 77 6f 72 64 | 20 6f 66 20 74 68 65 20 |longword| of the |
|000015d0| 68 65 61 64 65 72 20 63 | 6f 6e 74 61 69 6e 73 20 |header c|ontains |
|000015e0| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 74 68 65 |a pointe|r to the|
|000015f0| 20 66 69 72 73 74 20 62 | 79 74 65 20 6f 66 20 61 | first b|yte of a|
|00001600| 20 62 6c 6f 63 6b 20 74 | 68 61 74 20 73 70 65 63 | block t|hat spec|
|00001610| 69 66 69 65 73 20 64 65 | 76 69 63 65 2d 73 70 65 |ifies de|vice-spe|
|00001620| 63 69 66 69 63 20 65 78 | 74 65 6e 73 69 6f 6e 73 |cific ex|tensions|
|00001630| 2e 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 69 |. For ex|ample, i|
|00001640| 66 20 74 68 65 20 64 65 | 76 69 63 65 20 69 73 20 |f the de|vice is |
|00001650| 69 6e 74 65 6c 6c 69 67 | 65 6e 74 2c 20 74 68 69 |intellig|ent, thi|
|00001660| 73 20 6d 61 79 20 70 6f | 69 6e 74 20 74 6f 20 61 |s may po|int to a|
|00001670| 6e 20 61 72 65 61 20 74 | 68 61 74 20 63 6f 6e 74 |n area t|hat cont|
|00001680| 61 69 6e 73 20 61 20 63 | 6f 6d 6d 61 6e 64 20 62 |ains a c|ommand b|
|00001690| 75 66 66 65 72 20 66 6f | 72 20 70 72 6f 67 72 61 |uffer fo|r progra|
|000016a0| 6d 6d 69 6e 67 20 74 68 | 65 20 64 65 76 69 63 65 |mming th|e device|
|000016b0| 2e 0d 54 68 65 20 74 65 | 6e 74 68 20 6c 6f 6e 67 |..The te|nth long|
|000016c0| 77 6f 72 64 20 6f 66 20 | 74 68 65 20 68 65 61 64 |word of |the head|
|000016d0| 65 72 20 63 6f 6e 74 61 | 69 6e 73 20 66 6f 75 72 |er conta|ins four|
|000016e0| 20 41 53 43 49 49 20 63 | 68 61 72 61 63 74 65 72 | ASCII c|haracter|
|000016f0| 73 20 69 64 65 6e 74 69 | 66 79 69 6e 67 20 74 68 |s identi|fying th|
|00001700| 65 20 64 65 76 69 63 65 | 20 74 79 70 65 2c 20 69 |e device| type, i|
|00001710| 6e 20 74 68 69 73 20 63 | 61 73 65 20 27 54 42 4c |n this c|ase 'TBL|
|00001720| 54 27 2e 0d 43 75 72 73 | 6f 72 20 42 6c 6f 63 6b |T'..Curs|or Block|
|00001730| 0d 46 6f 72 20 65 61 63 | 68 20 63 75 72 73 6f 72 |.For eac|h cursor|
|00001740| 2c 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |, the fo|llowing |
|00001750| 62 6c 6f 63 6b 20 6f 66 | 20 69 6e 66 6f 72 6d 61 |block of| informa|
|00001760| 74 69 6f 6e 20 69 73 20 | 70 72 6f 76 69 64 65 64 |tion is |provided|
|00001770| 2e 0d 54 68 65 20 66 69 | 72 73 74 20 6c 6f 6e 67 |..The fi|rst long|
|00001780| 77 6f 72 64 20 63 6f 6e | 74 61 69 6e 73 20 61 20 |word con|tains a |
|00001790| 74 72 61 6e 73 64 75 63 | 65 72 20 74 79 70 65 2c |transduc|er type,|
|000017a0| 20 63 61 70 61 62 69 6c | 69 74 79 20 66 6c 61 67 | capabil|ity flag|
|000017b0| 73 2c 20 70 72 65 73 73 | 75 72 65 20 72 65 73 6f |s, press|ure reso|
|000017c0| 6c 75 74 69 6f 6e 2c 20 | 61 6e 64 20 6f 72 69 65 |lution, |and orie|
|000017d0| 6e 74 61 74 69 6f 6e 20 | 66 6f 72 6d 61 74 2c 20 |ntation |format, |
|000017e0| 61 73 20 69 6c 6c 75 73 | 74 72 61 74 65 64 20 69 |as illus|trated i|
|000017f0| 6e 20 46 69 67 75 72 65 | 20 34 2e 0d 46 69 67 75 |n Figure| 4..Figu|
|00001800| 72 65 20 34 20 46 6f 72 | 6d 61 74 20 6f 66 20 43 |re 4 For|mat of C|
|00001810| 75 72 73 6f 72 20 42 6c | 6f 63 6b d5 73 20 46 69 |ursor Bl|ock.s Fi|
|00001820| 72 73 74 20 4c 6f 6e 67 | 77 6f 72 64 20 20 0d 54 |rst Long|word .T|
|00001830| 68 65 20 74 77 6f 2d 62 | 69 74 20 74 72 61 6e 73 |he two-b|it trans|
|00001840| 64 75 63 65 72 20 74 79 | 70 65 20 66 69 65 6c 64 |ducer ty|pe field|
|00001850| 20 28 74 2c 20 62 69 74 | 73 20 32 39 d0 32 38 29 | (t, bit|s 29.28)|
|00001860| 20 73 70 65 63 69 66 69 | 65 73 20 74 68 65 20 70 | specifi|es the p|
|00001870| 6f 69 6e 74 69 6e 67 20 | 64 65 76 69 63 65 3a 20 |ointing |device: |
|00001880| 20 7a 65 72 6f 20 69 6e | 64 69 63 61 74 65 73 20 | zero in|dicates |
|00001890| 74 68 61 74 20 74 68 65 | 20 74 79 70 65 20 69 73 |that the| type is|
|000018a0| 20 75 6e 6b 6e 6f 77 6e | 2c 20 6f 6e 65 20 69 6e | unknown|, one in|
|000018b0| 64 69 63 61 74 65 73 20 | 70 65 6e 2c 20 61 6e 64 |dicates |pen, and|
|000018c0| 20 74 77 6f 20 69 6e 64 | 69 63 61 74 65 73 20 61 | two ind|icates a|
|000018d0| 20 63 75 72 73 6f 72 2e | 20 54 68 72 65 65 20 66 | cursor.| Three f|
|000018e0| 6c 61 67 73 20 28 64 69 | 73 70 20 78 2c 20 64 69 |lags (di|sp x, di|
|000018f0| 73 70 20 79 2c 20 61 6e | 64 20 64 69 73 70 20 7a |sp y, an|d disp z|
|00001900| 3b 20 62 69 74 73 20 32 | 36 2c 20 32 35 2c 20 61 |; bits 2|6, 25, a|
|00001910| 6e 64 20 32 34 29 20 73 | 70 65 63 69 66 79 20 74 |nd 24) s|pecify t|
|00001920| 68 65 20 63 61 70 61 62 | 69 6c 69 74 79 20 74 6f |he capab|ility to|
|00001930| 20 73 65 6e 73 65 20 64 | 69 73 70 6c 61 63 65 6d | sense d|isplacem|
|00001940| 65 6e 74 73 20 69 6e 20 | 74 68 65 20 58 2c 20 59 |ents in |the X, Y|
|00001950| 2c 20 61 6e 64 20 5a 20 | 64 69 6d 65 6e 73 69 6f |, and Z |dimensio|
|00001960| 6e 73 2c 20 77 69 74 68 | 20 61 20 6f 6e 65 20 69 |ns, with| a one i|
|00001970| 6e 64 69 63 61 74 69 6e | 67 20 74 68 65 20 63 61 |ndicatin|g the ca|
|00001980| 70 61 62 69 6c 69 74 79 | 20 69 73 20 70 72 65 73 |pability| is pres|
|00001990| 65 6e 74 2e 20 41 20 66 | 6f 75 72 2d 62 69 74 20 |ent. A f|our-bit |
|000019a0| 66 69 65 6c 64 20 28 6f | 72 69 65 6e 74 2c 20 62 |field (o|rient, b|
|000019b0| 69 74 73 20 31 39 d0 31 | 36 29 20 69 6e 64 69 63 |its 19.1|6) indic|
|000019c0| 61 74 65 73 20 74 68 65 | 20 66 6f 72 6d 61 74 20 |ates the| format |
|000019d0| 6f 66 20 6f 72 69 65 6e | 74 61 74 69 6f 6e 20 69 |of orien|tation i|
|000019e0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 3a 20 20 30 20 69 |nformati|on: 0 i|
|000019f0| 6e 64 69 63 61 74 65 73 | 20 6e 6f 20 6f 72 69 65 |ndicates| no orie|
|00001a00| 6e 74 61 74 69 6f 6e 20 | 69 6e 66 6f 72 6d 61 74 |ntation |informat|
|00001a10| 69 6f 6e 20 69 73 20 70 | 72 6f 76 69 64 65 64 2c |ion is p|rovided,|
|00001a20| 20 31 20 69 6e 64 69 63 | 61 74 65 73 20 61 6e 20 | 1 indic|ates an |
|00001a30| 61 74 74 69 74 75 64 65 | 20 6d 61 74 72 69 78 20 |attitude| matrix |
|00001a40| 69 73 20 73 75 70 70 6c | 69 65 64 2c 20 32 20 69 |is suppl|ied, 2 i|
|00001a50| 6e 64 69 63 61 74 65 73 | 20 70 65 6e 20 74 69 6c |ndicates| pen til|
|00001a60| 74 20 66 72 6f 6d 20 76 | 65 72 74 69 63 61 6c 2c |t from v|ertical,|
|00001a70| 20 61 6e 64 20 32 33 d0 | 32 30 20 61 72 65 20 72 | and 23.|20 are r|
|00001a80| 65 73 65 72 76 65 64 20 | 66 6f 72 20 61 64 64 69 |eserved |for addi|
|00001a90| 74 69 6f 6e 61 6c 20 66 | 6f 72 6d 61 74 73 2e 20 |tional f|ormats. |
|00001aa0| 41 20 66 6c 61 67 20 28 | 70 2c 20 62 69 74 20 32 |A flag (|p, bit 2|
|00001ab0| 37 29 20 69 6e 64 69 63 | 61 74 65 73 20 77 68 65 |7) indic|ates whe|
|00001ac0| 74 68 65 72 20 74 61 6e | 67 65 6e 74 69 61 6c 20 |ther tan|gential |
|00001ad0| 70 72 65 73 73 75 72 65 | 20 69 73 20 73 65 6e 73 |pressure| is sens|
|00001ae0| 65 64 2c 20 77 69 74 68 | 20 61 20 6f 6e 65 20 69 |ed, with| a one i|
|00001af0| 6e 64 69 63 61 74 69 6e | 67 20 70 72 65 73 73 75 |ndicatin|g pressu|
|00001b00| 72 65 20 69 73 20 73 65 | 6e 73 65 64 2e 20 41 20 |re is se|nsed. A |
|00001b10| 31 36 2d 62 69 74 20 66 | 69 65 6c 64 20 28 70 72 |16-bit f|ield (pr|
|00001b20| 65 73 73 75 72 65 20 72 | 65 73 6f 6c 75 74 69 6f |essure r|esolutio|
|00001b30| 6e 29 20 69 6e 64 69 63 | 61 74 65 73 20 74 68 65 |n) indic|ates the|
|00001b40| 20 6e 75 6d 62 65 72 20 | 6f 66 20 70 72 65 73 73 | number |of press|
|00001b50| 75 72 65 20 6c 65 76 65 | 6c 73 20 74 68 61 74 20 |ure leve|ls that |
|00001b60| 63 61 6e 20 62 65 20 73 | 65 6e 73 65 64 3b 20 7a |can be s|ensed; z|
|00001b70| 65 72 6f 20 69 6e 20 74 | 68 69 73 20 66 69 65 6c |ero in t|his fiel|
|00001b80| 64 20 6d 65 61 6e 73 20 | 74 68 61 74 20 70 72 65 |d means |that pre|
|00001b90| 73 73 75 72 65 20 69 73 | 20 6e 6f 74 20 73 65 6e |ssure is| not sen|
|00001ba0| 73 65 64 2e 20 54 68 69 | 73 20 6e 75 6d 62 65 72 |sed. Thi|s number|
|00001bb0| 20 61 70 70 6c 69 65 73 | 20 74 6f 20 62 6f 74 68 | applies| to both|
|00001bc0| 20 6e 6f 72 6d 61 6c 20 | 61 6e 64 20 74 61 6e 67 | normal |and tang|
|00001bd0| 65 6e 74 69 61 6c 20 70 | 72 65 73 73 75 72 65 2e |ential p|ressure.|
|00001be0| 0d 41 73 20 69 6c 6c 75 | 73 74 72 61 74 65 64 20 |.As illu|strated |
|00001bf0| 69 6e 20 46 69 67 75 72 | 65 73 20 35 20 61 6e 64 |in Figur|es 5 and|
|00001c00| 20 36 2c 20 74 68 65 20 | 73 65 63 6f 6e 64 20 61 | 6, the |second a|
|00001c10| 6e 64 20 74 68 69 72 64 | 20 6c 6f 6e 67 77 6f 72 |nd third| longwor|
|00001c20| 64 73 20 6f 66 20 74 68 | 65 20 63 75 72 73 6f 72 |ds of th|e cursor|
|00001c30| 20 62 6c 6f 63 6b 20 63 | 6f 6e 74 61 69 6e 2c 20 | block c|ontain, |
|00001c40| 72 65 73 70 65 63 74 69 | 76 65 6c 79 2c 20 74 68 |respecti|vely, th|
|00001c50| 65 20 78 20 73 63 61 6c | 65 20 61 6e 64 20 74 72 |e x scal|e and tr|
|00001c60| 61 6e 73 6c 61 74 69 6f | 6e 20 66 61 63 74 6f 72 |anslatio|n factor|
|00001c70| 73 20 61 6e 64 20 79 20 | 73 63 61 6c 65 20 61 6e |s and y |scale an|
|00001c80| 64 20 74 72 61 6e 73 6c | 61 74 69 6f 6e 20 66 61 |d transl|ation fa|
|00001c90| 63 74 6f 72 73 20 74 6f | 20 75 73 65 20 77 68 65 |ctors to| use whe|
|00001ca0| 6e 20 6d 61 70 70 69 6e | 67 20 62 65 74 77 65 65 |n mappin|g betwee|
|00001cb0| 6e 20 61 20 73 63 72 65 | 65 6e 20 77 69 6e 64 6f |n a scre|en windo|
|00001cc0| 77 20 61 6e 64 20 61 6e | 20 61 72 65 61 20 6f 6e |w and an| area on|
|00001cd0| 20 74 68 65 20 74 61 62 | 6c 65 74 2e 20 54 68 65 | the tab|let. The|
|00001ce0| 20 73 63 61 6c 69 6e 67 | 20 61 6e 64 20 74 72 61 | scaling| and tra|
|00001cf0| 6e 73 6c 61 74 69 6f 6e | 20 66 61 63 74 6f 72 73 |nslation| factors|
|00001d00| 20 61 72 65 20 70 72 6f | 76 69 64 65 64 20 62 79 | are pro|vided by|
|00001d10| 20 74 68 65 20 64 72 69 | 76 65 72 2e 20 28 54 79 | the dri|ver. (Ty|
|00001d20| 70 69 63 61 6c 6c 79 20 | 74 68 65 20 66 61 63 74 |pically |the fact|
|00001d30| 6f 72 73 20 61 72 65 20 | 63 61 6c 63 75 6c 61 74 |ors are |calculat|
|00001d40| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 74 61 62 6c |ed from |the tabl|
|00001d50| 65 74 20 74 6f 20 73 63 | 72 65 65 6e 20 6d 61 70 |et to sc|reen map|
|00001d60| 70 69 6e 67 20 73 65 74 | 20 62 79 20 74 68 65 20 |ping set| by the |
|00001d70| 75 73 65 72 2e 29 20 41 | 6e 20 61 70 70 6c 69 63 |user.) A|n applic|
|00001d80| 61 74 69 6f 6e 20 63 61 | 6e 20 72 65 61 64 20 74 |ation ca|n read t|
|00001d90| 68 65 73 65 20 66 61 63 | 74 6f 72 73 20 6f 72 20 |hese fac|tors or |
|00001da0| 69 74 20 63 61 6e 20 73 | 61 76 65 20 61 6e 64 20 |it can s|ave and |
|00001db0| 72 65 70 6c 61 63 65 20 | 74 68 65 6d 20 77 69 74 |replace |them wit|
|00001dc0| 68 20 69 74 73 20 6f 77 | 6e 2e 20 54 68 65 20 73 |h its ow|n. The s|
|00001dd0| 61 76 65 64 20 66 61 63 | 74 6f 72 73 20 73 68 6f |aved fac|tors sho|
|00001de0| 75 6c 64 20 62 65 20 72 | 65 73 74 6f 72 65 64 20 |uld be r|estored |
|00001df0| 77 68 65 6e 20 74 68 65 | 20 61 70 70 6c 69 63 61 |when the| applica|
|00001e00| 74 69 6f 6e 20 74 65 72 | 6d 69 6e 61 74 65 73 2e |tion ter|minates.|
|00001e10| 0d 46 69 67 75 72 65 20 | 35 20 46 6f 72 6d 61 74 |.Figure |5 Format|
|00001e20| 20 6f 66 20 43 75 72 73 | 6f 72 20 42 6c 6f 63 6b | of Curs|or Block|
|00001e30| d5 73 20 53 65 63 6f 6e | 64 20 4c 6f 6e 67 77 6f |.s Secon|d Longwo|
|00001e40| 72 64 20 20 0d 46 69 67 | 75 72 65 20 36 20 46 6f |rd .Fig|ure 6 Fo|
|00001e50| 72 6d 61 74 20 6f 66 20 | 43 75 72 73 6f 72 20 42 |rmat of |Cursor B|
|00001e60| 6c 6f 63 6b d5 73 20 54 | 68 69 72 64 20 4c 6f 6e |lock.s T|hird Lon|
|00001e70| 67 77 6f 72 64 20 20 0d | 54 68 65 20 78 20 61 6e |gword .|The x an|
|00001e80| 64 20 79 20 73 63 61 6c | 65 20 66 61 63 74 6f 72 |d y scal|e factor|
|00001e90| 73 20 61 72 65 20 70 6f | 73 69 74 69 76 65 20 66 |s are po|sitive f|
|00001ea0| 72 61 63 74 69 6f 6e 73 | 20 28 72 65 6c 61 74 65 |ractions| (relate|
|00001eb0| 64 20 74 6f 20 74 68 65 | 20 7a 6f 6f 6d 20 66 61 |d to the| zoom fa|
|00001ec0| 63 74 6f 72 20 6f 66 20 | 74 68 65 20 61 70 70 6c |ctor of |the appl|
|00001ed0| 69 63 61 74 69 6f 6e 29 | 20 61 6e 64 20 74 68 65 |ication)| and the|
|00001ee0| 20 74 72 61 6e 73 6c 61 | 74 69 6f 6e 20 76 61 6c | transla|tion val|
|00001ef0| 75 65 73 20 61 72 65 20 | 73 75 63 68 20 74 68 61 |ues are |such tha|
|00001f00| 74 20 74 68 65 20 72 65 | 6c 61 74 69 6f 6e 20 62 |t the re|lation b|
|00001f10| 65 74 77 65 65 6e 20 74 | 68 65 20 28 6d 6f 75 73 |etween t|he (mous|
|00001f20| 65 29 20 63 75 72 73 6f | 72 20 70 6f 73 69 74 69 |e) curso|r positi|
|00001f30| 6f 6e 20 61 6e 64 20 74 | 68 65 20 74 61 62 6c 65 |on and t|he table|
|00001f40| 74 20 63 6f 6f 72 64 69 | 6e 61 74 65 73 20 61 72 |t coordi|nates ar|
|00001f50| 65 20 61 73 20 66 6f 6c | 6c 6f 77 73 3a 0d 20 20 |e as fol|lows:. |
|00001f60| 20 20 20 20 20 20 6d 6f | 75 73 65 20 78 20 3d 20 | mo|use x = |
|00001f70| 28 74 61 62 6c 65 74 20 | 68 6f 72 69 7a 6f 6e 74 |(tablet |horizont|
|00001f80| 61 6c 29 20 2a 20 28 78 | 20 73 63 61 6c 65 29 20 |al) * (x| scale) |
|00001f90| 2b 20 28 78 20 74 72 61 | 6e 73 6c 61 74 69 6f 6e |+ (x tra|nslation|
|00001fa0| 29 0d 20 20 20 20 20 20 | 20 20 6d 6f 75 73 65 20 |). | mouse |
|00001fb0| 79 20 3d 20 2d 28 74 61 | 62 6c 65 74 20 76 65 72 |y = -(ta|blet ver|
|00001fc0| 74 69 63 61 6c 29 20 2a | 20 28 79 20 73 63 61 6c |tical) *| (y scal|
|00001fd0| 65 29 20 2b 20 28 79 20 | 74 72 61 6e 73 6c 61 74 |e) + (y |translat|
|00001fe0| 69 6f 6e 29 0d 54 68 65 | 20 6e 65 67 61 74 69 76 |ion).The| negativ|
|00001ff0| 65 20 69 6e 20 74 68 65 | 20 79 20 65 71 75 61 74 |e in the| y equat|
|00002000| 69 6f 6e 20 63 6f 6d 70 | 65 6e 73 61 74 65 73 20 |ion comp|ensates |
|00002010| 66 6f 72 20 74 68 65 20 | 64 69 66 66 65 72 65 6e |for the |differen|
|00002020| 74 20 6f 72 69 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |t orient|ation of|
|00002030| 20 74 68 65 20 74 61 62 | 6c 65 74 20 63 6f 6f 72 | the tab|let coor|
|00002040| 64 69 6e 61 74 65 20 6f | 72 69 67 69 6e 20 61 6e |dinate o|rigin an|
|00002050| 64 20 74 68 65 20 73 63 | 72 65 65 6e 20 63 6f 6f |d the sc|reen coo|
|00002060| 72 64 69 6e 61 74 65 20 | 6f 72 69 67 69 6e 2e 20 |rdinate |origin. |
|00002070| 28 54 61 62 6c 65 74 20 | 68 6f 72 69 7a 6f 6e 74 |(Tablet |horizont|
|00002080| 61 6c 20 69 73 20 6e 6f | 72 6d 61 6c 6c 79 20 74 |al is no|rmally t|
|00002090| 68 65 20 78 20 63 6f 6f | 72 64 69 6e 61 74 65 20 |he x coo|rdinate |
|000020a0| 61 6e 64 20 74 61 62 6c | 65 74 20 76 65 72 74 69 |and tabl|et verti|
|000020b0| 63 61 6c 20 74 68 65 20 | 79 20 63 6f 6f 72 64 69 |cal the |y coordi|
|000020c0| 6e 61 74 65 2e 20 53 65 | 65 20 4e 6f 74 65 20 31 |nate. Se|e Note 1|
|000020d0| 20 66 6f 72 20 61 6e 20 | 65 78 61 6d 70 6c 65 20 | for an |example |
|000020e0| 63 61 6c 63 75 6c 61 74 | 69 6f 6e 2e 29 0d 54 68 |calculat|ion.).Th|
|000020f0| 65 20 66 6f 75 72 74 68 | 20 6c 6f 6e 67 77 6f 72 |e fourth| longwor|
|00002100| 64 20 6f 66 20 74 68 65 | 20 63 75 72 73 6f 72 20 |d of the| cursor |
|00002110| 62 6c 6f 63 6b 20 63 6f | 6e 74 61 69 6e 73 20 74 |block co|ntains t|
|00002120| 68 65 20 70 72 6f 78 69 | 6d 69 74 79 20 66 6c 61 |he proxi|mity fla|
|00002130| 67 2c 20 63 75 72 73 6f | 72 20 75 70 64 61 74 65 |g, curso|r update|
|00002140| 20 66 6c 61 67 2c 20 6d | 6f 75 73 65 20 65 76 65 | flag, m|ouse eve|
|00002150| 6e 74 20 66 6c 61 67 2c | 20 6e 75 6d 62 65 72 20 |nt flag,| number |
|00002160| 6f 66 20 62 75 74 74 6f | 6e 73 2c 20 6d 6f 75 73 |of butto|ns, mous|
|00002170| 65 2d 64 6f 77 6e 20 70 | 72 65 73 73 75 72 65 20 |e-down p|ressure |
|00002180| 74 68 72 65 73 68 6f 6c | 64 2c 20 61 6e 64 20 62 |threshol|d, and b|
|00002190| 75 74 74 6f 6e 20 6d 61 | 73 6b 2c 20 61 73 20 69 |utton ma|sk, as i|
|000021a0| 6c 6c 75 73 74 72 61 74 | 65 64 20 69 6e 20 46 69 |llustrat|ed in Fi|
|000021b0| 67 75 72 65 20 37 2e 0d | 46 69 67 75 72 65 20 37 |gure 7..|Figure 7|
|000021c0| 20 46 6f 72 6d 61 74 20 | 6f 66 20 43 75 72 73 6f | Format |of Curso|
|000021d0| 72 20 42 6c 6f 63 6b d5 | 73 20 46 6f 75 72 74 68 |r Block.|s Fourth|
|000021e0| 20 4c 6f 6e 67 77 6f 72 | 64 20 20 0d 54 68 65 20 | Longwor|d .The |
|000021f0| 6d 6f 75 73 65 20 65 76 | 65 6e 74 20 62 69 74 20 |mouse ev|ent bit |
|00002200| 28 65 2c 20 62 69 74 20 | 32 39 29 20 69 73 20 73 |(e, bit |29) is s|
|00002210| 65 74 20 74 6f 20 31 20 | 62 79 20 74 68 65 20 64 |et to 1 |by the d|
|00002220| 72 69 76 65 72 20 69 66 | 20 61 6e 79 20 62 75 74 |river if| any but|
|00002230| 74 6f 6e 20 74 68 61 74 | 20 70 72 6f 76 69 64 65 |ton that| provide|
|00002240| 73 20 61 20 6d 6f 75 73 | 65 20 63 6c 69 63 6b 20 |s a mous|e click |
|00002250| 66 75 6e 63 74 69 6f 6e | 20 69 73 20 70 72 65 73 |function| is pres|
|00002260| 73 65 64 2e 20 54 68 69 | 73 20 62 69 74 20 69 73 |sed. Thi|s bit is|
|00002270| 20 76 61 6c 69 64 20 6f | 6e 6c 79 20 77 68 65 6e | valid o|nly when|
|00002280| 20 74 68 65 20 73 20 62 | 69 74 20 69 73 20 30 2e | the s b|it is 0.|
|00002290| 20 41 20 31 20 69 6e 64 | 69 63 61 74 65 73 20 74 | A 1 ind|icates t|
|000022a0| 68 61 74 20 61 20 6d 6f | 75 73 65 20 62 75 74 74 |hat a mo|use butt|
|000022b0| 6f 6e 20 69 73 20 d2 64 | 6f 77 6e d3 3b 20 61 20 |on is .d|own.; a |
|000022c0| 30 20 69 6e 64 69 63 61 | 74 65 73 20 61 6c 6c 20 |0 indica|tes all |
|000022d0| 6d 6f 75 73 65 20 62 75 | 74 74 6f 6e 73 20 61 72 |mouse bu|ttons ar|
|000022e0| 65 20 d2 75 70 2e d3 20 | 20 0d 54 68 65 20 6d 6f |e .up.. | .The mo|
|000022f0| 75 73 65 2d 64 6f 77 6e | 20 70 72 65 73 73 75 72 |use-down| pressur|
|00002300| 65 20 74 68 72 65 73 68 | 6f 6c 64 20 28 62 69 74 |e thresh|old (bit|
|00002310| 73 20 32 33 d0 31 36 29 | 20 61 70 70 6c 69 65 73 |s 23.16)| applies|
|00002320| 20 74 6f 20 61 20 74 72 | 61 6e 73 64 75 63 65 72 | to a tr|ansducer|
|00002330| 20 63 61 70 61 62 6c 65 | 20 6f 66 20 73 65 6e 73 | capable| of sens|
|00002340| 69 6e 67 20 70 72 65 73 | 73 75 72 65 20 61 74 20 |ing pres|sure at |
|00002350| 6f 6e 65 20 6f 72 20 6d | 6f 72 65 20 6f 66 20 69 |one or m|ore of i|
|00002360| 74 73 20 73 77 69 74 63 | 68 65 73 20 28 66 6f 72 |ts switc|hes (for|
|00002370| 20 65 78 61 6d 70 6c 65 | 2c 20 61 20 73 74 79 6c | example|, a styl|
|00002380| 75 73 20 77 69 74 68 20 | 61 20 70 72 65 73 73 75 |us with |a pressu|
|00002390| 72 65 2d 73 65 6e 73 69 | 74 69 76 65 20 74 69 70 |re-sensi|tive tip|
|000023a0| 29 2e 20 54 68 65 20 6d | 6f 75 73 65 2d 64 6f 77 |). The m|ouse-dow|
|000023b0| 6e 20 70 72 65 73 73 75 | 72 65 20 74 68 72 65 73 |n pressu|re thres|
|000023c0| 68 6f 6c 64 20 76 61 6c | 75 65 20 69 73 20 73 65 |hold val|ue is se|
|000023d0| 74 20 62 79 20 74 68 65 | 20 75 73 65 72 20 28 74 |t by the| user (t|
|000023e0| 79 70 69 63 61 6c 6c 79 | 20 76 69 61 20 61 20 43 |ypically| via a C|
|000023f0| 44 45 56 29 2e 20 49 74 | 20 73 70 65 63 69 66 69 |DEV). It| specifi|
|00002400| 65 73 20 74 68 65 20 70 | 72 65 73 73 75 72 65 20 |es the p|ressure |
|00002410| 6c 65 76 65 6c 20 74 68 | 61 74 20 6d 75 73 74 20 |level th|at must |
|00002420| 62 65 20 6d 65 74 20 6f | 72 20 65 78 63 65 65 64 |be met o|r exceed|
|00002430| 65 64 20 66 6f 72 20 61 | 20 6d 6f 75 73 65 2d 64 |ed for a| mouse-d|
|00002440| 6f 77 6e 20 74 6f 20 62 | 65 20 70 6f 73 74 65 64 |own to b|e posted|
|00002450| 20 62 79 20 74 68 65 20 | 64 72 69 76 65 72 2e 20 | by the |driver. |
|00002460| 57 68 65 6e 20 74 68 65 | 20 70 72 65 73 73 75 72 |When the| pressur|
|00002470| 65 20 6c 65 76 65 6c 20 | 64 72 6f 70 73 20 62 65 |e level |drops be|
|00002480| 6c 6f 77 20 74 68 65 20 | 74 68 72 65 73 68 6f 6c |low the |threshol|
|00002490| 64 2c 20 74 68 65 20 64 | 72 69 76 65 72 20 77 69 |d, the d|river wi|
|000024a0| 6c 6c 20 70 6f 73 74 20 | 61 20 6d 6f 75 73 65 2d |ll post |a mouse-|
|000024b0| 75 70 2e 20 49 66 20 74 | 68 65 20 70 72 65 73 73 |up. If t|he press|
|000024c0| 75 72 65 20 72 65 73 6f | 6c 75 74 69 6f 6e 20 28 |ure reso|lution (|
|000024d0| 6c 6f 6e 67 77 6f 72 64 | 20 31 2c 20 6c 6f 77 65 |longword| 1, lowe|
|000024e0| 72 20 77 6f 72 64 29 20 | 69 73 20 32 35 36 20 6f |r word) |is 256 o|
|000024f0| 72 20 6c 65 73 73 2c 20 | 74 68 65 20 74 68 72 65 |r less, |the thre|
|00002500| 73 68 6f 6c 64 20 76 61 | 6c 75 65 20 63 61 6e 20 |shold va|lue can |
|00002510| 62 65 20 75 73 65 64 20 | 77 69 74 68 6f 75 74 20 |be used |without |
|00002520| 6d 6f 64 69 66 69 63 61 | 74 69 6f 6e 2e 20 49 66 |modifica|tion. If|
|00002530| 20 74 68 65 20 72 65 73 | 6f 6c 75 74 69 6f 6e 20 | the res|olution |
|00002540| 65 78 63 65 65 64 73 20 | 32 35 36 2c 20 74 68 65 |exceeds |256, the|
|00002550| 20 74 68 72 65 73 68 6f | 6c 64 20 73 68 6f 75 6c | thresho|ld shoul|
|00002560| 64 20 62 65 20 73 63 61 | 6c 65 64 20 61 73 20 66 |d be sca|led as f|
|00002570| 6f 6c 6c 6f 77 73 3a 0d | 09 20 20 20 20 73 63 61 |ollows:.|. sca|
|00002580| 6c 65 64 20 74 68 72 65 | 73 68 6f 6c 64 20 3d 20 |led thre|shold = |
|00002590| 74 68 72 65 73 68 6f 6c | 64 20 2a 20 28 70 72 65 |threshol|d * (pre|
|000025a0| 73 73 75 72 65 20 72 65 | 73 6f 6c 75 74 69 6f 6e |ssure re|solution|
|000025b0| 20 2f 20 32 35 36 29 0d | 54 68 65 20 70 72 6f 78 | / 256).|The prox|
|000025c0| 69 6d 69 74 79 20 66 6c | 61 67 20 28 70 2c 20 62 |imity fl|ag (p, b|
|000025d0| 69 74 20 33 31 29 20 69 | 6e 64 69 63 61 74 65 73 |it 31) i|ndicates|
|000025e0| 20 77 68 65 74 68 65 72 | 20 74 68 65 20 63 75 72 | whether| the cur|
|000025f0| 73 6f 72 20 69 73 20 77 | 69 74 68 69 6e 20 74 68 |sor is w|ithin th|
|00002600| 65 20 73 65 6e 73 65 20 | 61 72 65 61 20 28 6f 72 |e sense |area (or|
|00002610| 20 77 61 73 20 69 6e 20 | 70 72 6f 78 69 6d 69 74 | was in |proximit|
|00002620| 79 20 74 68 65 20 6c 61 | 73 74 20 74 69 6d 65 20 |y the la|st time |
|00002630| 74 68 65 20 64 61 74 61 | 20 73 74 72 75 63 74 75 |the data| structu|
|00002640| 72 65 20 77 61 73 20 75 | 70 64 61 74 65 64 29 2c |re was u|pdated),|
|00002650| 20 77 69 74 68 20 61 20 | 6f 6e 65 20 69 6e 64 69 | with a |one indi|
|00002660| 63 61 74 69 6e 67 20 74 | 68 61 74 20 74 68 65 20 |cating t|hat the |
|00002670| 63 75 72 73 6f 72 20 69 | 73 20 69 6e 20 70 72 6f |cursor i|s in pro|
|00002680| 78 69 6d 69 74 79 2e 20 | 54 68 65 20 63 75 72 73 |ximity. |The curs|
|00002690| 6f 72 20 75 70 64 61 74 | 65 20 66 6c 61 67 20 28 |or updat|e flag (|
|000026a0| 73 2c 20 62 69 74 20 33 | 30 29 20 69 73 20 75 73 |s, bit 3|0) is us|
|000026b0| 65 64 20 74 6f 20 64 69 | 73 61 62 6c 65 20 74 68 |ed to di|sable th|
|000026c0| 65 20 64 72 69 76 65 72 | 20 66 72 6f 6d 20 75 70 |e driver| from up|
|000026d0| 64 61 74 69 6e 67 20 74 | 68 65 20 73 79 73 74 65 |dating t|he syste|
|000026e0| 6d 20 63 75 72 73 6f 72 | 20 6f 72 20 66 72 6f 6d |m cursor| or from|
|000026f0| 20 70 6f 73 74 69 6e 67 | 20 6d 6f 75 73 65 2d 75 | posting| mouse-u|
|00002700| 70 20 61 6e 64 20 6d 6f | 75 73 65 2d 64 6f 77 6e |p and mo|use-down|
|00002710| 20 65 76 65 6e 74 73 3b | 20 77 68 65 6e 20 74 68 | events;| when th|
|00002720| 69 73 20 66 6c 61 67 20 | 69 73 20 73 65 74 2c 20 |is flag |is set, |
|00002730| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00002740| 61 73 73 75 6d 65 73 20 | 74 68 69 73 20 72 65 73 |assumes |this res|
|00002750| 70 6f 6e 73 69 62 69 6c | 69 74 79 2e 20 41 20 66 |ponsibil|ity. A f|
|00002760| 69 76 65 2d 62 69 74 20 | 66 69 65 6c 64 20 28 6e |ive-bit |field (n|
|00002770| 75 6d 2c 20 62 69 74 73 | 20 32 38 d0 32 34 29 20 |um, bits| 28.24) |
|00002780| 73 70 65 63 69 66 69 65 | 73 20 74 68 65 20 6e 75 |specifie|s the nu|
|00002790| 6d 62 65 72 20 6f 66 20 | 62 75 74 74 6f 6e 73 20 |mber of |buttons |
|000027a0| 6f 6e 20 74 68 65 20 64 | 65 76 69 63 65 3b 20 61 |on the d|evice; a|
|000027b0| 20 76 61 6c 75 65 20 6f | 66 20 7a 65 72 6f 20 69 | value o|f zero i|
|000027c0| 6e 20 74 68 69 73 20 66 | 69 65 6c 64 20 69 6e 64 |n this f|ield ind|
|000027d0| 69 63 61 74 65 73 20 74 | 68 61 74 20 74 68 65 20 |icates t|hat the |
|000027e0| 6e 75 6d 62 65 72 20 6f | 66 20 62 75 74 74 6f 6e |number o|f button|
|000027f0| 73 20 69 73 20 75 6e 6b | 6e 6f 77 6e 2e 20 54 68 |s is unk|nown. Th|
|00002800| 65 20 62 75 74 74 6f 6e | 20 6d 61 73 6b 20 28 62 |e button| mask (b|
|00002810| 75 74 74 6f 6e 20 6d 61 | 73 6b 2c 20 62 69 74 73 |utton ma|sk, bits|
|00002820| 20 31 35 d0 30 20 63 6f | 72 72 65 73 70 6f 6e 64 | 15.0 co|rrespond|
|00002830| 69 6e 67 20 74 6f 20 62 | 75 74 74 6f 6e 73 20 31 |ing to b|uttons 1|
|00002840| 35 d0 30 29 20 69 6e 64 | 69 63 61 74 65 73 20 77 |5.0) ind|icates w|
|00002850| 68 69 63 68 20 62 75 74 | 74 6f 6e 73 20 61 72 65 |hich but|tons are|
|00002860| 20 75 73 65 64 20 62 79 | 20 74 68 65 20 64 72 69 | used by| the dri|
|00002870| 76 65 72 20 28 66 6f 72 | 20 65 78 61 6d 70 6c 65 |ver (for| example|
|00002880| 2c 20 66 6f 72 20 73 79 | 73 74 65 6d 20 63 75 72 |, for sy|stem cur|
|00002890| 73 6f 72 20 63 6f 6e 74 | 72 6f 6c 20 61 6e 64 20 |sor cont|rol and |
|000028a0| 6d 6f 75 73 65 2d 75 70 | 20 61 6e 64 20 6d 6f 75 |mouse-up| and mou|
|000028b0| 73 65 2d 64 6f 77 6e 20 | 65 76 65 6e 74 73 29 20 |se-down |events) |
|000028c0| 61 6e 64 20 77 68 69 63 | 68 20 62 75 74 74 6f 6e |and whic|h button|
|000028d0| 73 20 61 72 65 20 61 76 | 61 69 6c 61 62 6c 65 20 |s are av|ailable |
|000028e0| 66 6f 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |for appl|ication |
|000028f0| 75 73 61 67 65 20 77 68 | 65 6e 20 74 68 65 20 73 |usage wh|en the s|
|00002900| 20 62 69 74 20 69 73 20 | 7a 65 72 6f 2e 20 41 20 | bit is |zero. A |
|00002910| 76 61 6c 75 65 20 6f 66 | 20 30 20 69 6e 64 69 63 |value of| 0 indic|
|00002920| 61 74 65 73 20 74 68 61 | 74 20 74 68 65 20 62 75 |ates tha|t the bu|
|00002930| 74 74 6f 6e 20 69 73 20 | 62 65 69 6e 67 20 75 73 |tton is |being us|
|00002940| 65 64 20 62 79 20 74 68 | 65 20 64 72 69 76 65 72 |ed by th|e driver|
|00002950| 3b 20 61 20 76 61 6c 75 | 65 20 6f 66 20 31 20 69 |; a valu|e of 1 i|
|00002960| 6e 64 69 63 61 74 65 73 | 20 74 68 61 74 20 74 68 |ndicates| that th|
|00002970| 65 20 62 75 74 74 6f 6e | 20 69 73 20 61 76 61 69 |e button| is avai|
|00002980| 6c 61 62 6c 65 20 66 6f | 72 20 75 73 65 20 62 79 |lable fo|r use by|
|00002990| 20 20 61 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | an app|lication|
|000029a0| 2e 20 57 68 65 6e 20 74 | 68 65 20 73 20 62 69 74 |. When t|he s bit|
|000029b0| 20 69 73 20 31 2c 20 74 | 68 65 20 61 63 74 69 76 | is 1, t|he activ|
|000029c0| 69 74 79 20 6f 66 20 61 | 6c 6c 20 62 75 74 74 6f |ity of a|ll butto|
|000029d0| 6e 73 20 69 73 20 72 65 | 70 6f 72 74 65 64 20 69 |ns is re|ported i|
|000029e0| 6e 20 74 68 65 20 62 75 | 74 74 6f 6e 20 75 70 64 |n the bu|tton upd|
|000029f0| 61 74 65 20 66 69 65 6c | 64 2e 20 57 68 65 6e 20 |ate fiel|d. When |
|00002a00| 74 68 65 20 73 20 62 69 | 74 20 69 73 20 30 2c 20 |the s bi|t is 0, |
|00002a10| 6f 6e 6c 79 20 74 68 65 | 20 61 63 74 69 76 69 74 |only the| activit|
|00002a20| 79 20 6f 66 20 62 75 74 | 74 6f 6e 73 20 6d 61 72 |y of but|tons mar|
|00002a30| 6b 65 64 20 61 73 20 61 | 76 61 69 6c 61 62 6c 65 |ked as a|vailable|
|00002a40| 20 28 76 61 6c 75 65 20 | 6f 66 20 31 29 20 69 6e | (value |of 1) in|
|00002a50| 20 74 68 65 20 62 75 74 | 74 6f 6e 20 6d 61 73 6b | the but|ton mask|
|00002a60| 20 69 73 20 72 65 70 6f | 72 74 65 64 2e 20 54 68 | is repo|rted. Th|
|00002a70| 65 20 62 75 74 74 6f 6e | 20 6d 61 73 6b 20 66 69 |e button| mask fi|
|00002a80| 65 6c 64 20 69 73 20 69 | 6e 74 65 6e 64 65 64 20 |eld is i|ntended |
|00002a90| 70 72 69 6d 61 72 69 6c | 79 20 74 6f 20 62 65 20 |primaril|y to be |
|00002aa0| 72 65 61 64 20 62 79 20 | 61 6e 20 61 70 70 6c 69 |read by |an appli|
|00002ab0| 63 61 74 69 6f 6e 2e 20 | 41 6e 20 61 70 70 6c 69 |cation. |An appli|
|00002ac0| 63 61 74 69 6f 6e 20 6d | 61 79 20 61 6c 74 65 72 |cation m|ay alter|
|00002ad0| 20 69 74 2c 20 62 75 74 | 20 73 68 6f 75 6c 64 20 | it, but| should |
|00002ae0| 72 65 73 74 6f 72 65 20 | 69 74 20 75 70 6f 6e 20 |restore |it upon |
|00002af0| 74 65 72 6d 69 6e 61 74 | 69 6f 6e 2e 20 53 65 65 |terminat|ion. See|
|00002b00| 20 4e 6f 74 65 20 32 20 | 66 6f 72 20 6d 6f 72 65 | Note 2 |for more|
|00002b10| 20 64 65 74 61 69 6c 73 | 2e 0d 54 68 65 20 66 69 | details|..The fi|
|00002b20| 66 74 68 20 6c 6f 6e 67 | 77 6f 72 64 20 6f 66 20 |fth long|word of |
|00002b30| 74 68 65 20 63 75 72 73 | 6f 72 20 62 6c 6f 63 6b |the curs|or block|
|00002b40| 20 63 6f 6e 74 61 69 6e | 73 20 74 68 65 20 62 75 | contain|s the bu|
|00002b50| 74 74 6f 6e 20 75 70 64 | 61 74 65 2e 20 54 68 65 |tton upd|ate. The|
|00002b60| 20 66 6f 72 6d 61 74 20 | 6f 66 20 74 68 69 73 20 | format |of this |
|00002b70| 6c 6f 6e 67 77 6f 72 64 | 20 20 20 69 73 20 69 6c |longword| is il|
|00002b80| 6c 75 73 74 72 61 74 65 | 64 20 69 6e 20 46 69 67 |lustrate|d in Fig|
|00002b90| 75 72 65 20 38 2e 20 0d | 46 69 67 75 72 65 20 38 |ure 8. .|Figure 8|
|00002ba0| 20 46 6f 72 6d 61 74 20 | 6f 66 20 43 75 72 73 6f | Format |of Curso|
|00002bb0| 72 20 42 6c 6f 63 6b d5 | 73 20 46 69 66 74 68 20 |r Block.|s Fifth |
|00002bc0| 4c 6f 6e 67 77 6f 72 64 | 20 20 0d 41 6e 20 65 69 |Longword| .An ei|
|00002bd0| 67 68 74 2d 62 69 74 20 | 66 69 65 6c 64 20 28 65 |ght-bit |field (e|
|00002be0| 72 72 6f 72 2c 20 62 69 | 74 73 20 33 31 d0 31 36 |rror, bi|ts 31.16|
|00002bf0| 29 20 63 61 6e 20 62 65 | 20 75 73 65 64 20 66 6f |) can be| used fo|
|00002c00| 72 20 61 6e 20 65 72 72 | 6f 72 20 63 6f 64 65 20 |r an err|or code |
|00002c10| 72 65 74 75 72 6e 3b 20 | 61 20 7a 65 72 6f 20 69 |return; |a zero i|
|00002c20| 6e 20 74 68 69 73 20 66 | 69 65 6c 64 20 69 6e 64 |n this f|ield ind|
|00002c30| 69 63 61 74 65 73 20 6e | 6f 20 65 72 72 6f 72 20 |icates n|o error |
|00002c40| 28 6f 72 20 6e 6f 20 65 | 72 72 6f 72 20 63 6f 64 |(or no e|rror cod|
|00002c50| 65 20 69 73 20 72 65 74 | 75 72 6e 65 64 29 2e 20 |e is ret|urned). |
|00002c60| 41 20 31 36 2d 62 69 74 | 20 66 69 65 6c 64 20 28 |A 16-bit| field (|
|00002c70| 62 75 74 74 6f 6e 20 75 | 70 64 61 74 65 2c 20 62 |button u|pdate, b|
|00002c80| 69 74 73 20 31 35 d0 30 | 20 63 6f 72 72 65 73 70 |its 15.0| corresp|
|00002c90| 6f 6e 64 69 6e 67 20 74 | 6f 20 62 75 74 74 6f 6e |onding t|o button|
|00002ca0| 73 20 31 35 d0 30 29 20 | 65 6e 63 6f 64 65 73 20 |s 15.0) |encodes |
|00002cb0| 74 68 65 20 61 63 74 69 | 76 65 20 73 77 69 74 63 |the acti|ve switc|
|00002cc0| 68 20 6f 72 20 73 77 69 | 74 63 68 65 73 2c 20 6f |h or swi|tches, o|
|00002cd0| 6e 65 20 73 77 69 74 63 | 68 20 70 65 72 20 62 69 |ne switc|h per bi|
|00002ce0| 74 2c 20 77 69 74 68 20 | 61 20 6f 6e 65 20 69 6e |t, with |a one in|
|00002cf0| 20 74 68 65 20 62 69 74 | 20 70 6f 73 69 74 69 6f | the bit| positio|
|00002d00| 6e 20 69 6e 64 69 63 61 | 74 69 6e 67 20 74 68 61 |n indica|ting tha|
|00002d10| 74 20 74 68 65 20 62 75 | 74 74 6f 6e 20 69 73 20 |t the bu|tton is |
|00002d20| 61 63 74 69 76 65 2e 20 | 42 79 20 63 6f 6e 76 65 |active. |By conve|
|00002d30| 6e 74 69 6f 6e 2c 20 66 | 6f 72 20 61 20 73 74 79 |ntion, f|or a sty|
|00002d40| 6c 75 73 2c 20 62 69 74 | 20 7a 65 72 6f 20 69 73 |lus, bit| zero is|
|00002d50| 20 69 64 65 6e 74 69 66 | 69 65 64 20 77 69 74 68 | identif|ied with|
|00002d60| 20 74 68 65 20 74 69 70 | 2e 0d 54 68 65 20 73 69 | the tip|..The si|
|00002d70| 78 74 68 20 6c 6f 6e 67 | 77 6f 72 64 20 6f 66 20 |xth long|word of |
|00002d80| 74 68 65 20 63 75 72 73 | 6f 72 20 62 6c 6f 63 6b |the curs|or block|
|00002d90| 20 63 6f 6e 74 61 69 6e | 73 20 74 68 65 20 70 72 | contain|s the pr|
|00002da0| 65 73 73 75 72 65 2e 20 | 54 77 6f 20 31 36 2d 62 |essure. |Two 16-b|
|00002db0| 69 74 20 75 6e 73 69 67 | 6e 65 64 20 6e 75 6d 62 |it unsig|ned numb|
|00002dc0| 65 72 73 20 28 72 69 67 | 68 74 20 6a 75 73 74 69 |ers (rig|ht justi|
|00002dd0| 66 69 65 64 29 20 69 6e | 64 69 63 61 74 65 20 64 |fied) in|dicate d|
|00002de0| 65 74 65 63 74 65 64 20 | 70 72 65 73 73 75 72 65 |etected |pressure|
|00002df0| 20 69 6e 20 6e 6f 72 6d | 61 6c 20 61 6e 64 20 74 | in norm|al and t|
|00002e00| 61 6e 67 65 6e 74 69 61 | 6c 20 64 69 72 65 63 74 |angentia|l direct|
|00002e10| 69 6f 6e 73 2e 20 46 69 | 67 75 72 65 20 39 20 69 |ions. Fi|gure 9 i|
|00002e20| 6c 6c 75 73 74 72 61 74 | 65 73 20 74 68 65 20 66 |llustrat|es the f|
|00002e30| 6f 72 6d 61 74 20 6f 66 | 20 74 68 69 73 20 6c 6f |ormat of| this lo|
|00002e40| 6e 67 77 6f 72 64 2e 0d | 46 69 67 75 72 65 20 39 |ngword..|Figure 9|
|00002e50| 20 46 6f 72 6d 61 74 20 | 6f 66 20 43 75 72 73 6f | Format |of Curso|
|00002e60| 72 20 42 6c 6f 63 6b d5 | 73 20 53 69 78 74 68 20 |r Block.|s Sixth |
|00002e70| 4c 6f 6e 67 77 6f 72 64 | 20 20 0d 54 68 65 20 73 |Longword| .The s|
|00002e80| 65 76 65 6e 74 68 20 6c | 6f 6e 67 77 6f 72 64 20 |eventh l|ongword |
|00002e90| 6f 66 20 74 68 65 20 63 | 75 72 73 6f 72 20 62 6c |of the c|ursor bl|
|00002ea0| 6f 63 6b 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |ock cont|ains the|
|00002eb0| 20 74 69 6d 65 20 73 74 | 61 6d 70 2e 20 45 61 63 | time st|amp. Eac|
|00002ec0| 68 20 74 69 6d 65 20 74 | 68 69 73 20 62 6c 6f 63 |h time t|his bloc|
|00002ed0| 6b 20 6f 66 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |k of inf|ormation|
|00002ee0| 20 69 73 20 75 70 64 61 | 74 65 64 2c 20 74 68 69 | is upda|ted, thi|
|00002ef0| 73 20 66 69 65 6c 64 20 | 72 65 63 6f 72 64 73 20 |s field |records |
|00002f00| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 74 69 |the numb|er of ti|
|00002f10| 63 6b 73 20 73 69 6e 63 | 65 20 73 79 73 74 65 6d |cks sinc|e system|
|00002f20| 20 73 74 61 72 74 75 70 | 2e 0d 54 68 65 20 65 69 | startup|..The ei|
|00002f30| 67 68 74 68 2c 20 6e 69 | 6e 74 68 2c 20 61 6e 64 |ghth, ni|nth, and|
|00002f40| 20 74 65 6e 74 68 20 6c | 6f 6e 67 77 6f 72 64 73 | tenth l|ongwords|
|00002f50| 20 6f 66 20 74 68 65 20 | 63 75 72 73 6f 72 20 62 | of the |cursor b|
|00002f60| 6c 6f 63 6b 20 63 6f 6e | 74 61 69 6e 20 74 68 65 |lock con|tain the|
|00002f70| 20 58 2c 20 59 2c 20 61 | 6e 64 20 5a 20 63 6f 6f | X, Y, a|nd Z coo|
|00002f80| 72 64 69 6e 61 74 65 73 | 20 72 65 73 70 65 63 74 |rdinates| respect|
|00002f90| 69 76 65 6c 79 2e 0d 54 | 68 65 20 65 6c 65 76 65 |ively..T|he eleve|
|00002fa0| 6e 74 68 20 74 68 72 6f | 75 67 68 20 66 69 66 74 |nth thro|ugh fift|
|00002fb0| 65 65 6e 74 68 20 6c 6f | 6e 67 77 6f 72 64 73 20 |eenth lo|ngwords |
|00002fc0| 63 6f 6e 74 61 69 6e 20 | 6f 72 69 65 6e 74 61 74 |contain |orientat|
|00002fd0| 69 6f 6e 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2e |ion info|rmation.|
|00002fe0| 20 46 6f 72 20 61 6e 20 | 61 74 74 69 74 75 64 65 | For an |attitude|
|00002ff0| 20 6d 61 74 72 69 78 2c | 20 65 61 63 68 20 6c 6f | matrix,| each lo|
|00003000| 6e 67 77 6f 72 64 20 63 | 6f 6e 74 61 69 6e 73 20 |ngword c|ontains |
|00003010| 74 77 6f 20 31 36 2d 62 | 69 74 20 66 69 65 6c 64 |two 16-b|it field|
|00003020| 73 3b 20 6e 69 6e 65 20 | 65 6c 65 6d 65 6e 74 73 |s; nine |elements|
|00003030| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 74 6f 20 | can be |used to |
|00003040| 63 6f 6e 73 74 72 75 63 | 74 20 74 68 65 20 61 74 |construc|t the at|
|00003050| 74 69 74 75 64 65 20 6d | 61 74 72 69 78 2e 20 41 |titude m|atrix. A|
|00003060| 31 31 20 61 6e 64 20 41 | 31 32 20 61 72 65 20 69 |11 and A|12 are i|
|00003070| 6e 20 74 68 65 20 66 69 | 72 73 74 20 6c 6f 6e 67 |n the fi|rst long|
|00003080| 77 6f 72 64 2c 20 41 31 | 33 20 61 6e 64 20 41 32 |word, A1|3 and A2|
|00003090| 31 20 61 72 65 20 69 6e | 20 74 68 65 20 73 65 63 |1 are in| the sec|
|000030a0| 6f 6e 64 2c 20 41 32 32 | 20 61 6e 64 20 41 32 33 |ond, A22| and A23|
|000030b0| 20 61 72 65 20 69 6e 20 | 74 68 65 20 74 68 69 72 | are in |the thir|
|000030c0| 64 2c 20 41 33 31 20 61 | 6e 64 20 41 33 32 20 61 |d, A31 a|nd A32 a|
|000030d0| 72 65 20 69 6e 20 74 68 | 65 20 66 6f 75 72 74 68 |re in th|e fourth|
|000030e0| 2c 20 61 6e 64 20 41 33 | 33 20 69 73 20 69 6e 20 |, and A3|3 is in |
|000030f0| 74 68 65 20 66 69 66 74 | 68 2c 20 61 73 20 69 6c |the fift|h, as il|
|00003100| 6c 75 73 74 72 61 74 65 | 64 20 69 6e 20 46 69 67 |lustrate|d in Fig|
|00003110| 75 72 65 20 31 30 2e 0d | 46 69 67 75 72 65 20 31 |ure 10..|Figure 1|
|00003120| 30 20 41 74 74 69 74 75 | 64 65 20 4d 61 74 72 69 |0 Attitu|de Matri|
|00003130| 78 0d 46 6f 72 20 70 65 | 6e 20 74 69 6c 74 2c 20 |x.For pe|n tilt, |
|00003140| 74 68 65 20 78 2d 74 69 | 6c 74 20 69 73 20 69 6e |the x-ti|lt is in|
|00003150| 20 74 68 65 20 75 70 70 | 65 72 20 31 36 20 62 69 | the upp|er 16 bi|
|00003160| 74 73 20 6f 66 20 6c 6f | 6e 67 77 6f 72 64 20 6e |ts of lo|ngword n|
|00003170| 69 6e 65 2c 20 77 68 69 | 6c 65 20 74 68 65 20 79 |ine, whi|le the y|
|00003180| 2d 74 69 6c 74 20 69 73 | 20 69 6e 20 74 68 65 20 |-tilt is| in the |
|00003190| 6c 6f 77 65 72 20 31 36 | 20 62 69 74 73 3b 20 74 |lower 16| bits; t|
|000031a0| 68 65 20 6f 74 68 65 72 | 20 66 6f 75 72 20 6c 6f |he other| four lo|
|000031b0| 6e 67 77 6f 72 64 73 20 | 61 72 65 20 75 6e 75 73 |ngwords |are unus|
|000031c0| 65 64 20 61 73 20 69 6c | 6c 75 73 74 72 61 74 65 |ed as il|lustrate|
|000031d0| 64 20 69 6e 20 46 69 67 | 75 72 65 20 31 31 2e 0d |d in Fig|ure 11..|
|000031e0| 46 69 67 75 72 65 20 31 | 31 20 58 2d 54 69 6c 74 |Figure 1|1 X-Tilt|
|000031f0| 20 61 6e 64 20 59 2d 54 | 69 6c 74 0d 54 68 65 20 | and Y-T|ilt.The |
|00003200| 74 69 6c 74 20 76 61 6c | 75 65 73 20 61 72 65 20 |tilt val|ues are |
|00003210| 73 69 67 6e 65 64 20 6e | 75 6d 62 65 72 73 2e 20 |signed n|umbers. |
|00003220| 54 68 65 20 74 69 6c 74 | 20 76 61 6c 75 65 73 20 |The tilt| values |
|00003230| 72 61 6e 67 65 20 66 72 | 6f 6d 20 d0 28 61 6e 67 |range fr|om .(ang|
|00003240| 75 6c 61 72 20 72 65 73 | 6f 6c 75 74 69 6f 6e 20 |ular res|olution |
|00003250| 2f 20 32 29 20 74 6f 20 | 2b 28 61 6e 67 75 6c 61 |/ 2) to |+(angula|
|00003260| 72 20 72 65 73 6f 6c 75 | 74 69 6f 6e 20 2f 20 32 |r resolu|tion / 2|
|00003270| 29 2e 20 57 68 65 6e 20 | 74 68 65 20 70 65 6e 20 |). When |the pen |
|00003280| 69 73 20 70 65 72 70 65 | 6e 64 69 63 75 6c 61 72 |is perpe|ndicular|
|00003290| 20 74 6f 20 74 68 65 20 | 74 61 62 6c 65 74 20 69 | to the |tablet i|
|000032a0| 6e 20 62 6f 74 68 20 74 | 68 65 20 78 20 61 6e 64 |n both t|he x and|
|000032b0| 20 79 20 63 6f 6f 72 64 | 69 6e 61 74 65 73 2c 20 | y coord|inates, |
|000032c0| 74 68 65 20 78 20 61 6e | 64 20 79 20 74 69 6c 74 |the x an|d y tilt|
|000032d0| 20 76 61 6c 75 65 73 20 | 61 72 65 20 30 2e 0d 4e | values |are 0..N|
|000032e0| 6f 74 65 73 0d 31 2e 09 | 54 68 65 20 66 6f 6c 6c |otes.1..|The foll|
|000032f0| 6f 77 69 6e 67 20 69 73 | 20 61 6e 20 65 78 61 6d |owing is| an exam|
|00003300| 70 6c 65 20 6f 66 20 6d | 61 70 70 69 6e 67 20 62 |ple of m|apping b|
|00003310| 65 74 77 65 65 6e 20 61 | 20 73 63 72 65 65 6e 20 |etween a| screen |
|00003320| 77 69 6e 64 6f 77 20 61 | 6e 64 20 74 68 65 20 74 |window a|nd the t|
|00003330| 61 62 6c 65 74 3a 0d 41 | 73 73 75 6d 65 20 74 68 |ablet:.A|ssume th|
|00003340| 61 74 20 61 6e 20 61 72 | 65 61 20 6f 6e 20 74 68 |at an ar|ea on th|
|00003350| 65 20 74 61 62 6c 65 74 | 20 77 69 74 68 20 61 62 |e tablet| with ab|
|00003360| 73 6f 6c 75 74 65 20 63 | 6f 6f 72 64 69 6e 61 74 |solute c|oordinat|
|00003370| 65 73 20 28 30 2c 30 29 | 2c 20 28 30 2c 31 30 30 |es (0,0)|, (0,100|
|00003380| 30 30 29 2c 20 28 31 30 | 30 30 30 2c 31 30 30 30 |00), (10|000,1000|
|00003390| 30 29 2c 20 28 31 30 30 | 30 30 2c 30 29 20 69 73 |0), (100|00,0) is|
|000033a0| 20 74 6f 20 62 65 20 6d | 61 70 70 65 64 20 6f 6e | to be m|apped on|
|000033b0| 74 6f 20 61 20 73 63 72 | 65 65 6e 20 77 69 6e 64 |to a scr|een wind|
|000033c0| 6f 77 20 77 69 74 68 20 | 63 6f 72 72 65 73 70 6f |ow with |correspo|
|000033d0| 6e 64 69 6e 67 20 73 63 | 72 65 65 6e 20 63 6f 6f |nding sc|reen coo|
|000033e0| 72 64 69 6e 61 74 65 73 | 20 28 30 2c 37 32 30 29 |rdinates| (0,720)|
|000033f0| 2c 20 28 30 2c 30 29 2c | 20 28 37 32 30 2c 30 29 |, (0,0),| (720,0)|
|00003400| 2c 20 28 37 32 30 2c 37 | 32 30 29 3b 20 74 68 61 |, (720,7|20); tha|
|00003410| 74 20 69 73 2c 20 74 68 | 65 20 74 61 62 6c 65 74 |t is, th|e tablet|
|00003420| d5 73 20 6f 72 69 67 69 | 6e 20 69 73 20 69 6e 20 |.s origi|n is in |
|00003430| 74 68 65 20 62 6f 74 74 | 6f 6d 20 6c 65 66 74 20 |the bott|om left |
|00003440| 63 6f 72 6e 65 72 20 77 | 68 69 6c 65 20 74 68 65 |corner w|hile the|
|00003450| 20 77 69 6e 64 6f 77 d5 | 73 20 69 73 20 69 6e 20 | window.|s is in |
|00003460| 74 68 65 20 74 6f 70 20 | 6c 65 66 74 2c 20 61 6e |the top |left, an|
|00003470| 64 20 74 68 65 20 74 61 | 62 6c 65 74 20 69 73 20 |d the ta|blet is |
|00003480| 31 30 2c 30 30 30 20 75 | 6e 69 74 20 73 71 75 61 |10,000 u|nit squa|
|00003490| 72 65 20 77 68 69 6c 65 | 20 74 68 65 20 77 69 6e |re while| the win|
|000034a0| 64 6f 77 20 69 73 20 37 | 32 30 20 75 6e 69 74 20 |dow is 7|20 unit |
|000034b0| 73 71 75 61 72 65 2e 20 | 54 68 65 20 78 20 73 63 |square. |The x sc|
|000034c0| 61 6c 65 20 69 73 20 37 | 32 30 2f 31 30 30 30 30 |ale is 7|20/10000|
|000034d0| 3d 30 2e 30 37 32 2c 20 | 61 73 20 69 73 20 74 68 |=0.072, |as is th|
|000034e0| 65 20 79 20 73 63 61 6c | 65 2e 20 54 68 65 20 76 |e y scal|e. The v|
|000034f0| 61 6c 75 65 20 77 6f 75 | 6c 64 20 61 63 74 75 61 |alue wou|ld actua|
|00003500| 6c 6c 79 20 62 65 20 63 | 61 6c 63 75 6c 61 74 65 |lly be c|alculate|
|00003510| 64 20 75 73 69 6e 67 20 | 61 20 33 32 20 62 79 20 |d using |a 32 by |
|00003520| 31 36 20 64 69 76 69 64 | 65 2c 20 77 69 74 68 20 |16 divid|e, with |
|00003530| 74 68 65 20 6e 75 6d 65 | 72 61 74 6f 72 20 28 37 |the nume|rator (7|
|00003540| 32 30 29 20 69 6e 20 74 | 68 65 20 75 70 70 65 72 |20) in t|he upper|
|00003550| 20 31 36 20 62 69 74 73 | 20 6f 66 20 74 68 65 20 | 16 bits| of the |
|00003560| 33 32 2d 62 69 74 20 6e | 75 6d 65 72 61 74 6f 72 |32-bit n|umerator|
|00003570| 20 28 61 6e 64 20 30 20 | 69 6e 20 74 68 65 20 6c | (and 0 |in the l|
|00003580| 6f 77 65 72 20 31 36 20 | 62 69 74 73 29 3b 20 74 |ower 16 |bits); t|
|00003590| 68 65 20 72 65 73 75 6c | 74 20 69 73 20 74 68 65 |he resul|t is the|
|000035a0| 20 d2 66 72 61 63 74 69 | 6f 6e 61 6c d3 20 70 61 | .fracti|onal. pa|
|000035b0| 72 74 20 6f 66 20 74 68 | 65 20 64 69 76 69 73 69 |rt of th|e divisi|
|000035c0| 6f 6e 20 74 6f 20 62 65 | 20 73 74 6f 72 65 64 20 |on to be| stored |
|000035d0| 69 6e 20 74 68 65 20 73 | 63 61 6c 65 20 66 69 65 |in the s|cale fie|
|000035e0| 6c 64 20 69 6e 20 74 68 | 65 20 6d 65 6d 6f 72 79 |ld in th|e memory|
|000035f0| 20 73 74 72 75 63 74 75 | 72 65 2e 20 54 68 65 20 | structu|re. The |
|00003600| 78 20 74 72 61 6e 73 6c | 61 74 69 6f 6e 20 69 73 |x transl|ation is|
|00003610| 20 30 20 61 6e 64 20 74 | 68 65 20 79 20 74 72 61 | 0 and t|he y tra|
|00003620| 6e 73 6c 61 74 69 6f 6e | 20 69 73 20 37 32 30 2e |nslation| is 720.|
|00003630| 20 54 68 65 73 65 20 66 | 69 67 75 72 65 73 20 63 | These f|igures c|
|00003640| 61 6e 20 62 65 20 64 65 | 74 65 72 6d 69 6e 65 64 |an be de|termined|
|00003650| 20 62 79 20 74 61 6b 69 | 6e 67 20 74 68 65 20 6b | by taki|ng the k|
|00003660| 6e 6f 77 6e 20 63 6f 6f | 72 64 69 6e 61 74 65 73 |nown coo|rdinates|
|00003670| 20 66 6f 72 20 61 20 73 | 69 6e 67 6c 65 20 70 6f | for a s|ingle po|
|00003680| 69 6e 74 20 69 6e 20 62 | 6f 74 68 20 66 72 61 6d |int in b|oth fram|
|00003690| 65 73 20 61 6e 64 20 73 | 6f 6c 76 69 6e 67 20 65 |es and s|olving e|
|000036a0| 61 63 68 20 65 71 75 61 | 74 69 6f 6e 20 66 6f 72 |ach equa|tion for|
|000036b0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 74 | the fol|lowing t|
|000036c0| 72 61 6e 73 6c 61 74 69 | 6f 6e 2c 20 75 73 69 6e |ranslati|on, usin|
|000036d0| 67 20 74 68 65 20 63 6f | 6f 72 64 69 6e 61 74 65 |g the co|ordinate|
|000036e0| 73 20 66 6f 72 20 74 68 | 65 20 74 61 62 6c 65 74 |s for th|e tablet|
|000036f0| d5 73 20 61 62 73 6f 6c | 75 74 65 20 6f 72 69 67 |.s absol|ute orig|
|00003700| 69 6e 3a 0d 09 20 20 20 | 20 20 20 20 20 30 20 3d |in:.. | 0 =|
|00003710| 20 6d 6f 75 73 65 20 78 | 20 3d 20 28 30 29 2a 28 | mouse x| = (0)*(|
|00003720| 2e 30 37 32 29 20 2b 20 | 78 20 74 72 61 6e 73 6c |.072) + |x transl|
|00003730| 61 74 69 6f 6e 20 3d 20 | 30 0d 09 20 20 20 20 20 |ation = |0.. |
|00003740| 20 20 20 37 32 30 20 3d | 20 6d 6f 75 73 65 20 79 | 720 =| mouse y|
|00003750| 20 3d 20 2d 28 31 30 30 | 30 30 29 2a 28 2e 30 37 | = -(100|00)*(.07|
|00003760| 32 29 20 2b 20 79 20 74 | 72 61 6e 73 6c 61 74 69 |2) + y t|ranslati|
|00003770| 6f 6e 20 3d 20 30 0d 4e | 6f 77 20 74 68 65 20 74 |on = 0.N|ow the t|
|00003780| 61 62 6c 65 74 20 63 6f | 6f 72 64 69 6e 61 74 65 |ablet co|ordinate|
|00003790| 20 28 31 30 39 38 2c 20 | 32 35 33 29 20 69 73 20 | (1098, |253) is |
|000037a0| 6d 61 70 70 65 64 20 69 | 6e 74 6f 20 74 68 65 20 |mapped i|nto the |
|000037b0| 77 69 6e 64 6f 77 20 63 | 6f 6f 72 64 69 6e 61 74 |window c|oordinat|
|000037c0| 65 20 73 79 73 74 65 6d | 20 28 37 39 2c 37 30 32 |e system| (79,702|
|000037d0| 29 3a 0d 09 20 20 20 20 | 20 20 20 20 6d 6f 75 73 |):.. | mous|
|000037e0| 65 20 78 20 3d 20 28 31 | 30 39 38 29 2a 28 2e 30 |e x = (1|098)*(.0|
|000037f0| 37 32 29 20 2b 20 30 20 | 3d 20 37 39 0d 09 20 20 |72) + 0 |= 79.. |
|00003800| 20 20 20 20 20 20 6d 6f | 75 73 65 20 79 20 3d 20 | mo|use y = |
|00003810| 2d 28 32 35 33 29 2a 28 | 2e 30 37 32 29 20 2b 20 |-(253)*(|.072) + |
|00003820| 37 32 30 20 3d 20 37 30 | 32 0d 32 2e 20 09 41 6e |720 = 70|2.2. .An|
|00003830| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2c 20 43 6f | applica|tion, Co|
|00003840| 6e 74 72 6f 6c 20 50 61 | 6e 65 6c 20 64 65 76 69 |ntrol Pa|nel devi|
|00003850| 63 65 2c 20 6f 72 20 6f | 74 68 65 72 20 28 6e 6f |ce, or o|ther (no|
|00003860| 6e 2d 64 72 69 76 65 72 | 29 20 65 6e 74 69 74 79 |n-driver|) entity|
|00003870| 20 6d 61 79 20 6d 6f 64 | 69 66 79 20 74 68 65 20 | may mod|ify the |
|00003880| 66 6f 6c 6c 6f 77 69 6e | 67 20 66 69 65 6c 64 73 |followin|g fields|
|00003890| 3a 0d 48 65 61 64 65 72 | 2c 20 77 6f 72 64 20 31 |:.Header|, word 1|
|000038a0| 3a 20 20 73 65 6d 61 70 | 68 6f 72 65 2c 20 61 70 |: semap|hore, ap|
|000038b0| 70 20 61 6e 64 20 64 65 | 76 20 66 6c 61 67 73 3b |p and de|v flags;|
|000038c0| 0d 43 75 72 73 6f 72 20 | 42 6c 6f 63 6b 2c 20 77 |.Cursor |Block, w|
|000038d0| 6f 72 64 73 20 32 2c 33 | 3a 20 73 63 61 6c 69 6e |ords 2,3|: scalin|
|000038e0| 67 20 61 6e 64 20 74 72 | 61 6e 73 6c 61 74 69 6f |g and tr|anslatio|
|000038f0| 6e 2c 20 61 6e 64 20 77 | 6f 72 64 20 34 3a 20 73 |n, and w|ord 4: s|
|00003900| 20 62 69 74 2c 20 6d 6f | 75 73 65 2d 64 6f 77 6e | bit, mo|use-down|
|00003910| 20 70 72 65 73 73 75 72 | 65 20 74 68 72 65 73 68 | pressur|e thresh|
|00003920| 6f 6c 64 20 28 6f 6e 6c | 79 20 69 66 20 64 65 65 |old (onl|y if dee|
|00003930| 6d 65 64 20 6e 65 63 65 | 73 73 61 72 79 29 2c 20 |med nece|ssary), |
|00003940| 61 6e 64 20 62 75 74 74 | 6f 6e 20 6d 61 73 6b 2e |and butt|on mask.|
|00003950| 0d 49 6e 20 70 61 72 74 | 69 63 75 6c 61 72 2c 20 |.In part|icular, |
|00003960| 74 68 65 20 45 6e 67 6c | 69 73 68 20 6f 72 20 6d |the Engl|ish or m|
|00003970| 65 74 72 69 63 20 66 6c | 61 67 20 69 6e 20 48 65 |etric fl|ag in He|
|00003980| 61 64 65 72 20 77 6f 72 | 64 20 32 20 69 73 20 65 |ader wor|d 2 is e|
|00003990| 73 74 61 62 6c 69 73 68 | 65 64 20 62 79 20 74 68 |stablish|ed by th|
|000039a0| 65 20 64 72 69 76 65 72 | 20 61 6e 64 20 63 61 6e |e driver| and can|
|000039b0| 6e 6f 74 20 62 65 20 63 | 68 61 6e 67 65 64 20 62 |not be c|hanged b|
|000039c0| 79 20 61 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |y an app|lication|
|000039d0| 2c 20 43 6f 6e 74 72 6f | 6c 20 50 61 6e 65 6c 20 |, Contro|l Panel |
|000039e0| 64 65 76 69 63 65 2c 20 | 6f 72 20 6f 74 68 65 72 |device, |or other|
|000039f0| 20 6e 6f 6e 2d 64 72 69 | 76 65 72 20 65 6e 74 69 | non-dri|ver enti|
|00003a00| 74 79 2e 0d 53 65 74 74 | 69 6e 67 20 74 68 65 20 |ty..Sett|ing the |
|00003a10| 73 20 62 69 74 20 74 6f | 20 31 20 61 6c 6c 6f 77 |s bit to| 1 allow|
|00003a20| 73 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |s the ap|plicatio|
|00003a30| 6e 20 74 6f 20 76 69 65 | 77 20 74 68 65 20 73 74 |n to vie|w the st|
|00003a40| 61 74 65 20 6f 66 20 61 | 6c 6c 20 62 75 74 74 6f |ate of a|ll butto|
|00003a50| 6e 73 20 76 69 61 20 74 | 68 65 20 62 75 74 74 6f |ns via t|he butto|
|00003a60| 6e 20 75 70 64 61 74 65 | 20 66 69 65 6c 64 2e 20 |n update| field. |
|00003a70| 49 74 20 69 6e 68 69 62 | 69 74 73 20 74 68 65 20 |It inhib|its the |
|00003a80| 64 72 69 76 65 72 2c 20 | 68 6f 77 65 76 65 72 2c |driver, |however,|
|00003a90| 20 66 72 6f 6d 20 70 65 | 72 66 6f 72 6d 69 6e 67 | from pe|rforming|
|00003aa0| 20 61 6e 79 20 75 73 65 | 72 20 64 65 66 69 6e 65 | any use|r define|
|00003ab0| 64 20 66 75 6e 63 74 69 | 6f 6e 73 20 61 73 73 6f |d functi|ons asso|
|00003ac0| 63 69 61 74 65 64 20 77 | 69 74 68 20 74 68 65 20 |ciated w|ith the |
|00003ad0| 62 75 74 74 6f 6e 73 2e | 20 49 66 20 61 6e 20 61 |buttons.| If an a|
|00003ae0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 77 69 73 68 65 |pplicati|on wishe|
|00003af0| 73 20 74 6f 20 75 73 65 | 20 73 6f 6d 65 20 6f 66 |s to use| some of|
|00003b00| 20 74 68 65 20 62 75 74 | 74 6f 6e 73 2c 20 62 75 | the but|tons, bu|
|00003b10| 74 20 6c 65 61 76 65 20 | 73 6f 6d 65 20 61 76 61 |t leave |some ava|
|00003b20| 69 6c 61 62 6c 65 20 66 | 6f 72 20 75 73 65 72 20 |ilable f|or user |
|00003b30| 66 75 6e 63 74 69 6f 6e | 73 2c 20 69 74 20 63 61 |function|s, it ca|
|00003b40| 6e 20 63 68 61 6e 67 65 | 20 74 68 65 20 62 75 74 |n change| the but|
|00003b50| 74 6f 6e 20 6d 61 73 6b | 20 28 6c 65 61 76 69 6e |ton mask| (leavin|
|00003b60| 67 20 74 68 65 20 73 20 | 62 69 74 20 61 74 20 30 |g the s |bit at 0|
|00003b70| 29 2e 20 54 68 65 20 61 | 70 70 6c 69 63 61 74 69 |). The a|pplicati|
|00003b80| 6f 6e 20 73 68 6f 75 6c | 64 20 73 61 76 65 20 74 |on shoul|d save t|
|00003b90| 68 65 20 6d 61 73 6b 20 | 62 65 66 6f 72 65 20 72 |he mask |before r|
|00003ba0| 65 70 6c 61 63 69 6e 67 | 20 69 74 20 77 69 74 68 |eplacing| it with|
|00003bb0| 20 69 74 73 20 6f 77 6e | 20 73 65 74 74 69 6e 67 | its own| setting|
|00003bc0| 73 2e 20 4d 6f 75 73 65 | 20 65 76 65 6e 74 73 20 |s. Mouse| events |
|00003bd0| 6d 61 79 20 6f 72 20 6d | 61 79 20 6e 6f 74 20 63 |may or m|ay not c|
|00003be0| 6f 6e 74 69 6e 75 65 20 | 74 6f 20 62 65 20 72 65 |ontinue |to be re|
|00003bf0| 63 65 69 76 65 64 20 64 | 65 70 65 6e 64 69 6e 67 |ceived d|epending|
|00003c00| 20 6f 6e 20 77 68 65 74 | 68 65 72 20 74 68 65 20 | on whet|her the |
|00003c10| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 68 61 73 20 |applicat|ion has |
|00003c20| 74 61 6b 65 6e 20 63 6f | 6e 74 72 6f 6c 20 6f 66 |taken co|ntrol of|
|00003c30| 20 74 68 65 20 6d 6f 75 | 73 65 20 66 75 6e 63 74 | the mou|se funct|
|00003c40| 69 6f 6e 20 62 75 74 74 | 6f 6e 28 73 29 2e 20 55 |ion butt|on(s). U|
|00003c50| 70 6f 6e 20 74 65 72 6d | 69 6e 61 74 69 6f 6e 20 |pon term|ination |
|00003c60| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00003c70| 73 68 6f 75 6c 64 20 72 | 65 73 74 6f 72 65 20 74 |should r|estore t|
|00003c80| 68 65 20 62 75 74 74 6f | 6e 20 6d 61 73 6b 2e 0d |he butto|n mask..|
|00003c90| 54 68 65 20 6d 6f 75 73 | 65 2d 64 6f 77 6e 20 70 |The mous|e-down p|
|00003ca0| 72 65 73 73 75 72 65 20 | 74 68 72 65 73 68 6f 6c |ressure |threshol|
|00003cb0| 64 20 69 73 20 62 61 73 | 69 63 61 6c 6c 79 20 69 |d is bas|ically i|
|00003cc0| 6e 74 65 6e 64 65 64 20 | 74 6f 20 62 65 20 61 20 |ntended |to be a |
|00003cd0| 72 65 61 64 2d 6f 6e 6c | 79 20 66 69 65 6c 64 2e |read-onl|y field.|
|00003ce0| 20 49 74 20 69 6e 64 69 | 63 61 74 65 73 20 74 68 | It indi|cates th|
|00003cf0| 65 20 75 73 65 72 d5 73 | 20 70 72 65 66 65 72 65 |e user.s| prefere|
|00003d00| 6e 63 65 20 66 6f 72 20 | 74 68 65 20 61 6d 6f 75 |nce for |the amou|
|00003d10| 6e 74 20 6f 66 20 70 72 | 65 73 73 75 72 65 20 74 |nt of pr|essure t|
|00003d20| 6f 20 62 65 20 65 78 65 | 72 74 65 64 20 66 6f 72 |o be exe|rted for|
|00003d30| 20 61 20 6d 6f 75 73 65 | 2d 64 6f 77 6e 20 74 6f | a mouse|-down to|
|00003d40| 20 6f 63 63 75 72 2e 20 | 41 6c 74 68 6f 75 67 68 | occur. |Although|
|00003d50| 20 69 74 d5 73 20 6e 6f | 74 20 61 64 76 69 73 65 | it.s no|t advise|
|00003d60| 64 2c 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |d, an ap|plicatio|
|00003d70| 6e 20 63 61 6e 20 6f 76 | 65 72 77 72 69 74 65 20 |n can ov|erwrite |
|00003d80| 74 68 69 73 20 66 69 65 | 6c 64 20 77 69 74 68 20 |this fie|ld with |
|00003d90| 69 74 73 20 6f 77 6e 20 | 76 61 6c 75 65 20 61 6e |its own |value an|
|00003da0| 64 20 72 65 73 74 6f 72 | 65 20 69 74 20 75 70 6f |d restor|e it upo|
|00003db0| 6e 20 74 65 72 6d 69 6e | 61 74 69 6f 6e 2e 0d 33 |n termin|ation..3|
|00003dc0| 2e 09 57 68 65 6e 20 61 | 6e 20 61 70 70 6c 69 63 |..When a|n applic|
|00003dd0| 61 74 69 6f 6e 20 74 65 | 72 6d 69 6e 61 74 65 73 |ation te|rminates|
|00003de0| 20 69 74 20 73 68 6f 75 | 6c 64 20 72 65 73 74 6f | it shou|ld resto|
|00003df0| 72 65 20 61 6e 79 20 70 | 61 72 61 6d 65 74 65 72 |re any p|arameter|
|00003e00| 73 20 69 74 20 6d 61 79 | 20 68 61 76 65 20 63 68 |s it may| have ch|
|00003e10| 61 6e 67 65 64 2e 20 0d | 46 75 72 74 68 65 72 20 |anged. .|Further |
|00003e20| 52 65 66 65 72 65 6e 63 | 65 3a 0d a5 09 49 6e 73 |Referenc|e:...Ins|
|00003e30| 69 64 65 20 4d 61 63 69 | 6e 74 6f 73 68 2c 20 56 |ide Maci|ntosh, V|
|00003e40| 6f 6c 75 6d 65 20 56 2c | 20 54 68 65 20 41 70 70 |olume V,| The App|
|00003e50| 6c 65 20 44 65 73 6b 74 | 6f 70 20 42 75 73 0d a5 |le Deskt|op Bus..|
|00003e60| 09 54 65 63 68 6e 69 63 | 61 6c 20 4e 6f 74 65 20 |.Technic|al Note |
|00003e70| 4d 2e 48 57 2e 41 44 42 | d1 0d 09 09 20 53 70 61 |M.HW.ADB|.... Spa|
|00003e80| 63 65 20 41 6c 69 65 6e | 73 20 41 74 65 20 4d 79 |ce Alien|s Ate My|
|00003e90| 20 4d 6f 75 73 65 20 28 | 41 44 42 d1 54 68 65 20 | Mouse (|ADB.The |
|00003ea0| 55 6e 74 6f 6c 64 20 53 | 74 6f 72 79 29 0d a5 09 |Untold S|tory)...|
|00003eb0| 4d 61 63 44 54 53 20 53 | 61 6d 70 6c 65 20 43 6f |MacDTS S|ample Co|
|00003ec0| 64 65 20 23 31 37 2c 20 | 54 62 6c 74 44 72 76 72 |de #17, |TbltDrvr|
|00003ed0| 0d 5f 41 64 64 44 72 69 | 76 65 2c 20 5f 44 72 76 |._AddDri|ve, _Drv|
|00003ee0| 72 49 6e 73 74 61 6c 6c | 2c 20 61 6e 64 20 5f 44 |rInstall|, and _D|
|00003ef0| 72 76 72 52 65 6d 6f 76 | 65 0d 44 65 76 69 63 65 |rvrRemov|e.Device|
|00003f00| 73 09 4d 2e 44 56 2e 41 | 64 64 44 72 69 76 65 0d |s.M.DV.A|ddDrive.|
|00003f10| 52 65 76 69 73 65 64 20 | 62 79 3a 09 50 65 74 65 |Revised |by:.Pete|
|00003f20| 20 48 65 6c 6d 65 09 44 | 65 63 65 6d 62 65 72 20 | Helme.D|ecember |
|00003f30| 31 39 38 38 0d 57 72 69 | 74 74 65 6e 20 62 79 3a |1988.Wri|tten by:|
|00003f40| 09 4a 69 6d 20 46 72 69 | 65 64 6c 61 6e 64 65 72 |.Jim Fri|edlander|
|00003f50| 09 4d 61 72 63 68 20 31 | 39 38 37 0d 5f 41 64 64 |.March 1|987._Add|
|00003f60| 44 72 69 76 65 2c 20 5f | 44 72 76 72 49 6e 73 74 |Drive, _|DrvrInst|
|00003f70| 61 6c 6c 2c 20 61 6e 64 | 20 5f 44 72 76 72 52 65 |all, and| _DrvrRe|
|00003f80| 6d 6f 76 65 20 61 72 65 | 20 75 73 65 64 20 69 6e |move are| used in|
|00003f90| 20 74 68 65 20 73 61 6d | 70 6c 65 20 53 43 53 49 | the sam|ple SCSI|
|00003fa0| 20 64 72 69 76 65 72 20 | 69 6e 20 74 68 65 20 53 | driver |in the S|
|00003fb0| 43 53 49 20 44 65 76 65 | 6c 6f 70 6d 65 6e 74 20 |CSI Deve|lopment |
|00003fc0| 50 61 63 6b 61 67 65 2c | 20 77 68 69 63 68 20 69 |Package,| which i|
|00003fd0| 73 20 61 76 61 69 6c 61 | 62 6c 65 20 66 72 6f 6d |s availa|ble from|
|00003fe0| 20 41 50 44 41 2e 20 20 | 54 68 69 73 20 54 65 63 | APDA. |This Tec|
|00003ff0| 68 6e 69 63 61 6c 20 4e | 6f 74 65 20 64 6f 63 75 |hnical N|ote docu|
|00004000| 6d 65 6e 74 73 20 74 68 | 65 20 70 61 72 61 6d 65 |ments th|e parame|
|00004010| 74 65 72 73 20 66 6f 72 | 20 74 68 65 73 65 20 63 |ters for| these c|
|00004020| 61 6c 6c 73 2e 0d 43 68 | 61 6e 67 65 73 20 73 69 |alls..Ch|anges si|
|00004030| 6e 63 65 20 4d 61 72 63 | 68 20 31 2c 20 31 39 38 |nce Marc|h 1, 198|
|00004040| 38 3a 20 20 55 70 64 61 | 74 65 64 20 74 68 65 20 |8: Upda|ted the |
|00004050| 5f 44 72 76 72 49 6e 73 | 74 61 6c 6c 20 74 65 78 |_DrvrIns|tall tex|
|00004060| 74 20 74 6f 20 72 65 66 | 6c 65 63 74 20 74 68 65 |t to ref|lect the|
|00004070| 20 75 73 65 20 6f 66 20 | 72 65 67 69 73 74 65 72 | use of |register|
|00004080| 20 41 30 2c 20 77 68 69 | 63 68 20 73 68 6f 75 6c | A0, whi|ch shoul|
|00004090| 64 20 63 6f 6e 74 61 69 | 6e 20 61 20 70 6f 69 6e |d contai|n a poin|
|000040a0| 74 65 72 20 74 6f 20 74 | 68 65 20 64 72 69 76 65 |ter to t|he drive|
|000040b0| 72 20 77 68 65 6e 20 63 | 61 6c 6c 65 64 2e 20 20 |r when c|alled. |
|000040c0| 41 6c 73 6f 20 61 64 64 | 65 64 20 73 69 6d 70 6c |Also add|ed simpl|
|000040d0| 65 20 67 6c 75 65 20 63 | 6f 64 65 20 66 6f 72 20 |e glue c|ode for |
|000040e0| 5f 44 72 76 72 49 6e 73 | 74 61 6c 6c 20 61 6e 64 |_DrvrIns|tall and|
|000040f0| 20 5f 44 72 76 72 52 65 | 6d 6f 76 65 20 73 69 6e | _DrvrRe|move sin|
|00004100| 63 65 20 6e 6f 6e 65 20 | 69 73 20 61 76 61 69 6c |ce none |is avail|
|00004110| 61 62 6c 65 20 69 6e 20 | 74 68 65 20 4d 50 57 20 |able in |the MPW |
|00004120| 69 6e 74 65 72 66 61 63 | 65 73 2e 0d 5f 41 64 64 |interfac|es.._Add|
|00004130| 44 72 69 76 65 0d 5f 41 | 64 64 44 72 69 76 65 20 |Drive._A|ddDrive |
|00004140| 61 64 64 73 20 61 20 64 | 72 69 76 65 20 74 6f 20 |adds a d|rive to |
|00004150| 74 68 65 20 64 72 69 76 | 65 20 71 75 65 75 65 2c |the driv|e queue,|
|00004160| 20 61 6e 64 20 69 73 20 | 64 69 73 63 75 73 73 65 | and is |discusse|
|00004170| 64 20 69 6e 20 6d 6f 72 | 65 20 64 65 74 61 69 6c |d in mor|e detail|
|00004180| 20 69 6e 20 54 65 63 68 | 6e 69 63 61 6c 20 4e 6f | in Tech|nical No|
|00004190| 74 65 20 23 33 36 2c 20 | 44 72 69 76 65 20 51 75 |te #36, |Drive Qu|
|000041a0| 65 75 65 20 45 6c 65 6d | 65 6e 74 73 3a 0d 20 20 |eue Elem|ents:. |
|000041b0| 20 20 20 20 20 20 46 55 | 4e 43 54 49 4f 4e 20 41 | FU|NCTION A|
|000041c0| 64 64 44 72 69 76 65 28 | 44 51 45 3a 44 72 76 51 |ddDrive(|DQE:DrvQ|
|000041d0| 45 31 3b 64 72 69 76 65 | 4e 75 6d 2c 72 65 66 4e |E1;drive|Num,refN|
|000041e0| 75 6d 3a 49 4e 54 45 47 | 45 52 29 3a 4f 53 45 72 |um:INTEG|ER):OSEr|
|000041f0| 72 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r;. | |
|00004200| 20 20 20 41 30 20 28 69 | 6e 70 75 74 29 20 20 20 | A0 (i|nput) |
|00004210| 20 20 20 20 20 20 20 20 | 20 20 20 ae 20 20 20 20 | | . |
|00004220| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 44 51 45 0d | pointer| to DQE.|
|00004230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 44 | | D|
|00004240| 30 20 68 69 67 68 20 77 | 6f 72 64 28 69 6e 70 75 |0 high w|ord(inpu|
|00004250| 74 29 20 20 20 20 20 20 | ae 20 20 20 20 20 64 72 |t) |. dr|
|00004260| 69 76 65 20 6e 75 6d 62 | 65 72 0d 20 20 20 20 20 |ive numb|er. |
|00004270| 20 20 20 20 20 20 20 20 | 20 20 44 30 20 6c 6f 77 | | D0 low|
|00004280| 20 77 6f 72 64 28 69 6e | 70 75 74 29 20 20 20 20 | word(in|put) |
|00004290| 20 20 20 ae 20 20 20 20 | 20 64 72 69 76 65 72 20 | . | driver |
|000042a0| 52 65 66 4e 75 6d 0d 20 | 20 20 20 20 20 20 20 20 |RefNum. | |
|000042b0| 20 20 20 20 20 20 44 30 | 20 28 6f 75 74 70 75 74 | D0| (output|
|000042c0| 29 20 20 20 20 20 20 20 | 20 20 20 20 20 20 ac 20 |) | . |
|000042d0| 20 20 20 20 65 72 72 6f | 72 20 63 6f 64 65 0d 20 | erro|r code. |
|000042e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004300| 20 20 20 20 6e 6f 45 72 | 72 20 28 61 6c 77 61 79 | noEr|r (alway|
|00004310| 73 20 72 65 74 75 72 6e | 65 64 29 0d 5f 44 72 76 |s return|ed)._Drv|
|00004320| 72 49 6e 73 74 61 6c 6c | 0d 5f 44 72 76 72 49 6e |rInstall|._DrvrIn|
|00004330| 73 74 61 6c 6c 20 69 73 | 20 75 73 65 64 20 74 6f |stall is| used to|
|00004340| 20 69 6e 73 74 61 6c 6c | 20 61 20 64 72 69 76 65 | install| a drive|
|00004350| 72 2e 20 20 41 20 44 43 | 45 20 66 6f 72 20 74 68 |r. A DC|E for th|
|00004360| 65 20 64 72 69 76 65 72 | 20 69 73 20 63 72 65 61 |e driver| is crea|
|00004370| 74 65 64 20 61 6e 64 20 | 69 74 73 20 68 61 6e 64 |ted and |its hand|
|00004380| 6c 65 20 65 6e 74 65 72 | 65 64 20 69 6e 74 6f 20 |le enter|ed into |
|00004390| 74 68 65 20 73 70 65 63 | 69 66 69 65 64 20 55 6e |the spec|ified Un|
|000043a0| 69 74 20 54 61 62 6c 65 | 20 70 6f 73 69 74 69 6f |it Table| positio|
|000043b0| 6e 20 28 d0 31 20 74 68 | 72 6f 75 67 68 20 d0 36 |n (.1 th|rough .6|
|000043c0| 34 29 2e 20 20 49 66 20 | 74 68 65 20 75 6e 69 74 |4). If |the unit|
|000043d0| 20 6e 75 6d 62 65 72 20 | 69 73 20 d0 34 20 74 68 | number |is .4 th|
|000043e0| 72 6f 75 67 68 20 d0 39 | 2c 20 74 68 65 20 63 6f |rough .9|, the co|
|000043f0| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 52 4f 4d 2d |rrespond|ing ROM-|
|00004400| 62 61 73 65 64 20 64 72 | 69 76 65 72 20 77 69 6c |based dr|iver wil|
|00004410| 6c 20 62 65 20 72 65 70 | 6c 61 63 65 64 3a 0d 20 |l be rep|laced:. |
|00004420| 20 20 20 20 20 20 20 46 | 55 4e 43 54 49 4f 4e 20 | F|UNCTION |
|00004430| 44 72 76 72 49 6e 73 74 | 61 6c 6c 28 64 72 76 72 |DrvrInst|all(drvr|
|00004440| 48 61 6e 64 6c 65 3a 48 | 61 6e 64 6c 65 3b 20 72 |Handle:H|andle; r|
|00004450| 65 66 4e 75 6d 3a 20 49 | 4e 54 45 47 45 52 29 3a |efNum: I|NTEGER):|
|00004460| 20 4f 53 45 72 72 3b 0d | 20 20 20 20 20 20 20 20 | OSErr;.| |
|00004470| 20 20 20 20 20 20 20 41 | 30 20 28 69 6e 70 75 74 | A|0 (input|
|00004480| 29 20 20 20 20 20 20 20 | 20 ae 20 20 20 20 70 6f |) | . po|
|00004490| 69 6e 74 65 72 20 74 6f | 20 64 72 69 76 65 72 0d |inter to| driver.|
|000044a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 44 | | D|
|000044b0| 30 20 28 69 6e 70 75 74 | 29 20 20 20 20 20 20 20 |0 (input|) |
|000044c0| 20 ae 20 20 20 20 64 72 | 69 76 65 72 20 52 65 66 | . dr|iver Ref|
|000044d0| 4e 75 6d 20 28 d0 31 20 | 74 68 72 6f 75 67 68 20 |Num (.1 |through |
|000044e0| d0 36 34 29 0d 20 20 20 | 20 20 20 20 20 20 20 20 |.64). | |
|000044f0| 20 20 20 20 44 30 20 28 | 6f 75 74 70 75 74 29 20 | D0 (|output) |
|00004500| 20 20 20 20 20 20 ac 20 | 20 20 20 65 72 72 6f 72 | . | error|
|00004510| 20 63 6f 64 65 0d 20 20 | 20 20 20 20 20 20 20 20 | code. | |
|00004520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004530| 20 20 20 20 20 20 20 20 | 20 20 20 6e 6f 45 72 72 | | noErr|
|00004540| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004560| 20 20 20 20 20 20 62 61 | 64 55 6e 69 74 45 72 72 | ba|dUnitErr|
|00004570| 0d 5f 44 72 76 72 52 65 | 6d 6f 76 65 0d 5f 44 72 |._DrvrRe|move._Dr|
|00004580| 76 72 52 65 6d 6f 76 65 | 20 69 73 20 75 73 65 64 |vrRemove| is used|
|00004590| 20 74 6f 20 72 65 6d 6f | 76 65 20 61 20 64 72 69 | to remo|ve a dri|
|000045a0| 76 65 72 2e 20 20 41 20 | 52 41 4d 2d 62 61 73 65 |ver. A |RAM-base|
|000045b0| 64 20 64 72 69 76 65 72 | 20 69 73 20 70 75 72 67 |d driver| is purg|
|000045c0| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 73 79 73 74 |ed from |the syst|
|000045d0| 65 6d 20 68 65 61 70 20 | 28 75 73 69 6e 67 20 5f |em heap |(using _|
|000045e0| 52 65 6c 65 61 73 65 52 | 65 73 6f 75 72 63 65 29 |ReleaseR|esource)|
|000045f0| 2e 20 20 4d 65 6d 6f 72 | 79 20 66 6f 72 20 74 68 |. Memor|y for th|
|00004600| 65 20 44 43 45 20 69 73 | 20 64 69 73 70 6f 73 65 |e DCE is| dispose|
|00004610| 64 3a 0d 20 20 20 20 20 | 20 20 20 46 55 4e 43 54 |d:. | FUNCT|
|00004620| 49 4f 4e 20 44 72 76 72 | 52 65 6d 6f 76 65 28 72 |ION Drvr|Remove(r|
|00004630| 65 66 4e 75 6d 3a 20 49 | 4e 54 45 47 45 52 29 3a |efNum: I|NTEGER):|
|00004640| 4f 53 45 72 72 3b 0d 20 | 20 20 20 20 20 20 20 20 |OSErr;. | |
|00004650| 20 20 20 20 20 20 44 30 | 20 28 69 6e 70 75 74 29 | D0| (input)|
|00004660| 20 20 20 20 20 20 20 20 | ae 20 20 20 20 44 72 69 | |. Dri|
|00004670| 76 65 72 20 52 65 66 4e | 75 6d 0d 20 20 20 20 20 |ver RefN|um. |
|00004680| 20 20 20 20 20 20 20 20 | 20 20 44 30 20 28 6f 75 | | D0 (ou|
|00004690| 74 70 75 74 29 20 20 20 | 20 20 20 20 ac 20 20 20 |tput) | . |
|000046a0| 20 65 72 72 6f 72 20 63 | 6f 64 65 20 0d 20 20 20 | error c|ode . |
|000046b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046d0| 20 6e 6f 45 72 72 0d 20 | 20 20 20 20 20 20 20 20 | noErr. | |
|000046e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000046f0| 20 20 20 20 20 20 20 20 | 20 20 20 71 45 72 72 0d | | qErr.|
|00004700| 49 6e 74 65 72 66 61 63 | 65 73 0d 54 68 72 6f 75 |Interfac|es.Throu|
|00004710| 67 68 20 61 20 73 65 71 | 75 65 6e 63 65 20 6f 66 |gh a seq|uence of|
|00004720| 20 63 61 74 61 63 6c 79 | 73 6d 69 63 20 65 76 65 | catacly|smic eve|
|00004730| 6e 74 73 2c 20 74 68 65 | 20 67 6c 75 65 20 63 6f |nts, the| glue co|
|00004740| 64 65 20 66 6f 72 20 5f | 44 72 76 72 49 6e 73 74 |de for _|DrvrInst|
|00004750| 61 6c 6c 20 61 6e 64 20 | 5f 44 72 76 72 52 65 6d |all and |_DrvrRem|
|00004760| 6f 76 65 20 77 61 73 20 | 6e 65 76 65 72 20 61 63 |ove was |never ac|
|00004770| 74 75 61 6c 6c 79 20 61 | 64 64 65 64 20 74 6f 20 |tually a|dded to |
|00004780| 74 68 65 20 4d 50 57 20 | 69 6e 74 65 72 66 61 63 |the MPW |interfac|
|00004790| 65 73 20 28 69 2e 65 2e | 2c 20 d2 57 65 20 66 6f |es (i.e.|, .We fo|
|000047a0| 72 67 6f 74 2e d3 29 2c | 20 73 6f 20 77 65 20 77 |rgot..),| so we w|
|000047b0| 69 6c 6c 20 69 6e 63 6c | 75 64 65 20 73 69 6d 70 |ill incl|ude simp|
|000047c0| 6c 65 20 67 6c 75 65 20 | 68 65 72 65 20 61 74 20 |le glue |here at |
|000047d0| 6e 6f 20 65 78 74 72 61 | 20 65 78 70 65 6e 73 65 |no extra| expense|
|000047e0| 20 74 6f 20 79 6f 75 2e | 0d 49 74 20 77 6f 75 6c | to you.|.It woul|
|000047f0| 64 20 62 65 20 61 64 76 | 69 73 61 62 6c 65 20 74 |d be adv|isable t|
|00004800| 6f 20 66 69 72 73 74 20 | 6c 6f 63 6b 20 74 68 65 |o first |lock the|
|00004810| 20 68 61 6e 64 6c 65 20 | 74 6f 20 79 6f 75 72 20 | handle |to your |
|00004820| 64 72 69 76 65 72 20 77 | 69 74 68 20 5f 48 4c 6f |driver w|ith _HLo|
|00004830| 63 6b 20 62 65 66 6f 72 | 65 20 6d 61 6b 69 6e 67 |ck befor|e making|
|00004840| 20 65 69 74 68 65 72 20 | 6f 66 20 74 68 65 73 65 | either |of these|
|00004850| 20 63 61 6c 6c 73 20 73 | 69 6e 63 65 20 6d 65 6d | calls s|ince mem|
|00004860| 6f 72 79 20 6d 61 79 20 | 62 65 20 6d 6f 76 65 64 |ory may |be moved|
|00004870| 2e 0d 20 20 20 20 20 20 | 20 3b 2d 2d 2d 2d 2d 2d |.. | ;------|
|00004880| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004890| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000048a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000048b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0d 20 20 20 20 20 20 |--------|-. |
|000048c0| 20 3b 20 46 55 4e 43 54 | 49 4f 4e 20 44 52 56 52 | ; FUNCT|ION DRVR|
|000048d0| 49 6e 73 74 61 6c 6c 28 | 64 72 76 72 48 61 6e 64 |Install(|drvrHand|
|000048e0| 6c 65 3a 48 61 6e 64 6c | 65 3b 20 72 65 66 4e 75 |le:Handl|e; refNu|
|000048f0| 6d 3a 49 4e 54 45 47 45 | 52 29 3a 4f 53 45 72 72 |m:INTEGE|R):OSErr|
|00004900| 3b 0d 20 20 20 20 20 20 | 20 3b 2d 2d 2d 2d 2d 2d |;. | ;------|
|00004910| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004920| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004930| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004940| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0d 20 20 20 20 20 20 |--------|-. |
|00004950| 20 44 52 56 52 49 6e 73 | 74 61 6c 6c 20 20 20 20 | DRVRIns|tall |
|00004960| 20 20 50 52 4f 43 20 20 | 20 20 45 58 50 4f 52 54 | PROC | EXPORT|
|00004970| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4d |. | M|
|00004980| 4f 56 45 41 2e 4c 20 20 | 20 20 20 20 20 20 20 20 |OVEA.L | |
|00004990| 20 28 53 50 29 2b 2c 20 | 41 31 20 20 20 20 3b 20 | (SP)+, |A1 ; |
|000049a0| 70 6f 70 20 72 65 74 75 | 72 6e 20 61 64 64 72 65 |pop retu|rn addre|
|000049b0| 73 73 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ss. | |
|000049c0| 20 4d 4f 56 45 2e 57 09 | 20 20 20 20 20 20 20 20 | MOVE.W.| |
|000049d0| 20 20 28 53 50 29 2b 2c | 20 44 30 20 20 20 20 3b | (SP)+,| D0 ;|
|000049e0| 20 64 72 69 76 65 72 20 | 72 65 66 65 72 65 6e 63 | driver |referenc|
|000049f0| 65 20 6e 75 6d 62 65 72 | 0d 20 20 20 20 20 20 20 |e number|. |
|00004a00| 20 20 20 20 20 20 20 4d | 4f 56 45 41 2e 4c 20 20 | M|OVEA.L |
|00004a10| 20 20 20 20 20 20 20 20 | 20 28 53 50 29 2b 2c 20 | | (SP)+, |
|00004a20| 41 30 20 20 20 20 3b 20 | 68 61 6e 64 6c 65 20 74 |A0 ; |handle t|
|00004a30| 6f 20 64 72 69 76 65 72 | 20 0d 20 20 20 20 20 20 |o driver| . |
|00004a40| 20 20 20 20 20 20 20 20 | 4d 4f 56 45 41 2e 4c 20 | |MOVEA.L |
|00004a50| 20 20 20 20 20 20 20 20 | 20 20 28 41 30 29 2c 20 | | (A0), |
|00004a60| 41 30 20 20 20 20 20 3b | 20 70 6f 69 6e 74 65 72 |A0 ;| pointer|
|00004a70| 20 74 6f 20 64 72 69 76 | 65 72 0d 20 20 20 20 20 | to driv|er. |
|00004a80| 20 20 20 20 20 20 20 20 | 20 5f 44 72 76 72 49 6e | | _DrvrIn|
|00004a90| 73 74 61 6c 6c 20 20 20 | 20 20 20 20 20 20 20 20 |stall | |
|00004aa0| 20 20 20 20 20 20 20 20 | 3b 20 24 41 30 33 44 0d | |; $A03D.|
|00004ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 4d 4f | | MO|
|00004ac0| 56 45 2e 57 20 20 20 20 | 20 20 20 20 20 20 20 20 |VE.W | |
|00004ad0| 44 30 2c 20 28 53 50 29 | 20 20 20 20 20 3b 20 67 |D0, (SP)| ; g|
|00004ae0| 65 74 20 65 72 72 6f 72 | 0d 20 20 20 20 20 20 20 |et error|. |
|00004af0| 20 20 20 20 20 20 20 4a | 4d 50 20 20 20 20 20 20 | J|MP |
|00004b00| 20 20 20 20 20 20 20 20 | 20 28 41 31 29 20 20 20 | | (A1) |
|00004b10| 20 20 20 20 20 20 3b 20 | 26 20 73 70 6c 69 74 0d | ; |& split.|
|00004b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 45 4e | | EN|
|00004b30| 44 50 50 52 4f 43 0d 20 | 20 20 20 20 20 20 3b 2d |DPPROC. | ;-|
|00004b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004b50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004b60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004b70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 20 |--------|------. |
|00004b80| 20 20 20 20 20 20 3b 20 | 46 55 4e 43 54 49 4f 4e | ; |FUNCTION|
|00004b90| 20 44 52 56 52 52 65 6d | 6f 76 65 28 72 65 66 4e | DRVRRem|ove(refN|
|00004ba0| 75 6d 3a 49 4e 54 45 47 | 45 52 29 3a 4f 53 45 72 |um:INTEG|ER):OSEr|
|00004bb0| 72 3b 0d 20 20 20 20 20 | 20 20 3b 2d 2d 2d 2d 2d |r;. | ;-----|
|00004bc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004bd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004be0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004bf0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 20 20 20 20 20 |--------|--. |
|00004c00| 20 20 44 52 56 52 52 65 | 6d 6f 76 65 20 20 20 20 | DRVRRe|move |
|00004c10| 20 20 50 52 4f 43 20 20 | 20 20 45 58 50 4f 52 54 | PROC | EXPORT|
|00004c20| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4d |. | M|
|00004c30| 4f 56 45 41 2e 4c 20 20 | 20 20 20 20 20 20 20 20 |OVEA.L | |
|00004c40| 28 53 50 29 2b 2c 20 41 | 31 20 20 20 20 3b 20 70 |(SP)+, A|1 ; p|
|00004c50| 6f 70 20 72 65 74 75 72 | 6e 20 61 64 64 72 65 73 |op retur|n addres|
|00004c60| 73 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s. | |
|00004c70| 4d 4f 56 45 2e 57 20 20 | 20 20 20 20 20 20 20 20 |MOVE.W | |
|00004c80| 20 28 53 50 29 2b 2c 20 | 44 30 20 20 20 20 3b 20 | (SP)+, |D0 ; |
|00004c90| 64 72 69 76 65 72 20 72 | 65 66 65 72 65 6e 63 65 |driver r|eference|
|00004ca0| 20 6e 75 6d 62 65 72 0d | 20 20 20 20 20 20 20 20 | number.| |
|00004cb0| 20 20 20 20 20 20 5f 44 | 72 76 72 52 65 6d 6f 76 | _D|rvrRemov|
|00004cc0| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e | |
|00004cd0| 20 20 20 20 3b 20 24 41 | 30 33 45 0d 20 20 20 20 | ; $A|03E. |
|00004ce0| 20 20 20 20 20 20 20 20 | 20 20 4d 4f 56 45 2e 57 | | MOVE.W|
|00004cf0| 20 20 20 20 20 20 20 20 | 20 20 20 44 30 2c 20 28 | | D0, (|
|00004d00| 53 50 29 20 20 20 20 20 | 3b 20 67 65 74 20 65 72 |SP) |; get er|
|00004d10| 72 6f 72 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ror. | |
|00004d20| 20 20 4a 4d 50 20 20 20 | 20 20 20 20 20 20 20 20 | JMP | |
|00004d30| 20 20 20 28 41 31 29 20 | 20 20 20 20 20 20 20 20 | (A1) | |
|00004d40| 3b 20 26 20 73 70 6c 69 | 74 0d 20 20 20 20 20 20 |; & spli|t. |
|00004d50| 20 20 20 20 20 20 20 20 | 45 4e 44 50 50 52 4f 43 | |ENDPPROC|
|00004d60| 0d 42 6f 6f 74 20 42 6c | 6f 63 6b 73 0d 44 65 76 |.Boot Bl|ocks.Dev|
|00004d70| 69 63 65 73 09 4d 2e 44 | 56 2e 42 6f 6f 74 42 6c |ices.M.D|V.BootBl|
|00004d80| 6f 63 6b 73 0d 52 65 76 | 69 73 65 64 20 62 79 3a |ocks.Rev|ised by:|
|00004d90| 09 09 4d 61 72 63 68 20 | 31 39 38 38 0d 57 72 69 |..March |1988.Wri|
|00004da0| 74 74 65 6e 20 62 79 3a | 09 42 6f 62 20 4a 6f 68 |tten by:|.Bob Joh|
|00004db0| 6e 73 6f 6e 09 4d 61 72 | 63 68 20 31 39 38 37 0d |nson.Mar|ch 1987.|
|00004dc0| 54 68 65 72 65 20 61 72 | 65 20 74 77 6f 20 75 6e |There ar|e two un|
|00004dd0| 64 6f 63 75 6d 65 6e 74 | 65 64 20 66 65 61 74 75 |document|ed featu|
|00004de0| 72 65 73 20 6f 66 20 74 | 68 65 20 42 6f 6f 74 20 |res of t|he Boot |
|00004df0| 42 6c 6f 63 6b 73 2e 20 | 54 68 69 73 20 6e 6f 74 |Blocks. |This not|
|00004e00| 65 20 77 69 6c 6c 20 64 | 65 73 63 72 69 62 65 20 |e will d|escribe |
|00004e10| 68 6f 77 20 74 68 65 79 | 20 63 75 72 72 65 6e 74 |how they| current|
|00004e20| 6c 79 20 77 6f 72 6b 2e | 0d 57 61 72 6e 69 6e 67 |ly work.|.Warning|
|00004e30| 3a 09 54 68 65 20 66 6f | 72 6d 61 74 20 61 6e 64 |:.The fo|rmat and|
|00004e40| 20 66 75 6e 63 74 69 6f | 6e 61 6c 69 74 79 20 6f | functio|nality o|
|00004e50| 66 20 74 68 65 20 42 6f | 6f 74 20 42 6c 6f 63 6b |f the Bo|ot Block|
|00004e60| 73 20 77 69 6c 6c 20 63 | 68 61 6e 67 65 20 69 6e |s will c|hange in|
|00004e70| 20 74 68 65 20 66 75 74 | 75 72 65 3b 20 64 65 70 | the fut|ure; dep|
|00004e80| 65 6e 64 65 6e 63 65 20 | 6f 6e 20 74 68 69 73 20 |endence |on this |
|00004e90| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 6d 61 79 20 |informat|ion may |
|00004ea0| 63 61 75 73 65 20 79 6f | 75 72 20 70 72 6f 67 72 |cause yo|ur progr|
|00004eb0| 61 6d 20 74 6f 20 66 61 | 69 6c 20 6f 6e 20 66 75 |am to fa|il on fu|
|00004ec0| 74 75 72 65 20 68 61 72 | 64 77 61 72 65 20 6f 72 |ture har|dware or|
|00004ed0| 20 77 69 74 68 20 66 75 | 74 75 72 65 20 53 79 73 | with fu|ture Sys|
|00004ee0| 74 65 6d 20 73 6f 66 74 | 77 61 72 65 2e 0d 54 68 |tem soft|ware..Th|
|00004ef0| 65 20 66 69 72 73 74 20 | 74 77 6f 20 73 65 63 74 |e first |two sect|
|00004f00| 6f 72 73 20 6f 66 20 61 | 20 62 6f 6f 74 61 62 6c |ors of a| bootabl|
|00004f10| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 64 69 73 6b |e Macint|osh disk|
|00004f20| 20 61 72 65 20 75 73 65 | 64 20 74 6f 20 73 74 6f | are use|d to sto|
|00004f30| 72 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 6f |re infor|mation o|
|00004f40| 6e 20 68 6f 77 20 74 6f | 20 73 74 61 72 74 20 75 |n how to| start u|
|00004f50| 70 20 74 68 65 20 63 6f | 6d 70 75 74 65 72 2e 20 |p the co|mputer. |
|00004f60| 54 68 65 20 62 6c 6f 63 | 6b 73 20 63 6f 6e 74 61 |The bloc|ks conta|
|00004f70| 69 6e 20 76 61 72 69 6f | 75 73 20 70 61 72 61 6d |in vario|us param|
|00004f80| 65 74 65 72 73 20 74 68 | 61 74 20 74 68 65 20 73 |eters th|at the s|
|00004f90| 79 73 74 65 6d 20 75 73 | 65 73 20 74 6f 20 73 74 |ystem us|es to st|
|00004fa0| 61 72 74 75 70 20 73 75 | 63 68 20 61 73 20 74 68 |artup su|ch as th|
|00004fb0| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 73 79 |e name o|f the sy|
|00004fc0| 73 74 65 6d 20 66 69 6c | 65 2c 20 74 68 65 20 6e |stem fil|e, the n|
|00004fd0| 61 6d 65 20 6f 66 20 74 | 68 65 20 46 69 6e 64 65 |ame of t|he Finde|
|00004fe0| 72 2c 20 74 68 65 20 66 | 69 72 73 74 20 61 70 70 |r, the f|irst app|
|00004ff0| 6c 69 63 61 74 69 6f 6e | 20 74 6f 20 72 75 6e 20 |lication| to run |
|00005000| 61 74 20 62 6f 6f 74 20 | 74 69 6d 65 2c 20 74 68 |at boot |time, th|
|00005010| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 65 76 65 6e |e number| of even|
|00005020| 74 73 20 74 6f 20 61 6c | 6c 6f 77 2c 20 65 74 63 |ts to al|low, etc|
|00005030| 2e 0d 43 68 61 6e 67 69 | 6e 67 20 53 79 73 74 65 |..Changi|ng Syste|
|00005040| 6d 20 48 65 61 70 20 53 | 69 7a 65 0d 54 68 65 20 |m Heap S|ize.The |
|00005050| 62 6f 6f 74 20 62 6c 6f | 63 6b 73 20 64 69 63 74 |boot blo|cks dict|
|00005060| 61 74 65 20 77 68 61 74 | 20 73 69 7a 65 20 74 68 |ate what| size th|
|00005070| 65 20 73 79 73 74 65 6d | 20 68 65 61 70 20 77 69 |e system| heap wi|
|00005080| 6c 6c 20 62 65 20 61 66 | 74 65 72 20 62 6f 6f 74 |ll be af|ter boot|
|00005090| 69 6e 67 2e 20 41 6e 79 | 20 63 6f 6d 6d 6f 6e 20 |ing. Any| common |
|000050a0| 73 65 63 74 6f 72 20 65 | 64 69 74 69 6e 67 20 70 |sector e|diting p|
|000050b0| 72 6f 67 72 61 6d 20 77 | 69 6c 6c 20 61 6c 6c 6f |rogram w|ill allo|
|000050c0| 77 20 79 6f 75 20 74 6f | 20 63 68 61 6e 67 65 20 |w you to| change |
|000050d0| 74 68 65 20 64 61 74 61 | 20 69 6e 20 74 68 65 20 |the data| in the |
|000050e0| 62 6f 6f 74 20 62 6c 6f | 63 6b 73 2e 20 43 68 61 |boot blo|cks. Cha|
|000050f0| 6e 67 69 6e 67 20 74 68 | 65 20 73 79 73 74 65 6d |nging th|e system|
|00005100| 20 68 65 61 70 20 73 69 | 7a 65 20 69 73 20 61 63 | heap si|ze is ac|
|00005110| 63 6f 6d 70 6c 69 73 68 | 65 64 20 62 79 20 63 68 |complish|ed by ch|
|00005120| 61 6e 67 69 6e 67 20 74 | 77 6f 20 70 61 72 61 6d |anging t|wo param|
|00005130| 65 74 65 72 73 20 69 6e | 20 74 68 65 20 62 6f 6f |eters in| the boo|
|00005140| 74 20 62 6c 6f 63 6b 73 | 3a 20 74 68 65 20 6c 6f |t blocks|: the lo|
|00005150| 6e 67 20 77 6f 72 64 20 | 76 61 6c 75 65 20 61 74 |ng word |value at|
|00005160| 20 6c 6f 63 61 74 69 6f | 6e 20 24 38 36 20 69 6e | locatio|n $86 in|
|00005170| 20 42 6c 6f 63 6b 20 30 | 20 69 6e 64 69 63 61 74 | Block 0| indicat|
|00005180| 65 73 20 74 68 65 20 73 | 69 7a 65 20 6f 66 20 74 |es the s|ize of t|
|00005190| 68 65 20 73 79 73 74 65 | 6d 20 68 65 61 70 3b 20 |he syste|m heap; |
|000051a0| 74 68 65 20 77 6f 72 64 | 20 76 61 6c 75 65 20 61 |the word| value a|
|000051b0| 74 20 6c 6f 63 61 74 69 | 6f 6e 20 24 36 20 69 73 |t locati|on $6 is|
|000051c0| 20 74 68 65 20 76 65 72 | 73 69 6f 6e 20 6e 75 6d | the ver|sion num|
|000051d0| 62 65 72 20 6f 66 20 74 | 68 65 20 62 6f 6f 74 20 |ber of t|he boot |
|000051e0| 62 6c 6f 63 6b 73 2e 20 | 43 68 61 6e 67 69 6e 67 |blocks. |Changing|
|000051f0| 20 74 68 65 20 76 65 72 | 73 69 6f 6e 20 6e 75 6d | the ver|sion num|
|00005200| 62 65 72 20 74 6f 20 62 | 65 20 67 72 65 61 74 65 |ber to b|e greate|
|00005210| 72 20 74 68 61 6e 20 24 | 31 34 20 28 24 31 35 20 |r than $|14 ($15 |
|00005220| 69 73 20 72 65 63 6f 6d | 6d 65 6e 64 65 64 29 20 |is recom|mended) |
|00005230| 74 65 6c 6c 73 20 74 68 | 65 20 52 4f 4d 20 74 6f |tells th|e ROM to|
|00005240| 20 75 73 65 20 74 68 65 | 20 76 61 6c 75 65 20 61 | use the| value a|
|00005250| 74 20 24 38 36 20 66 6f | 72 20 74 68 65 20 73 79 |t $86 fo|r the sy|
|00005260| 73 74 65 6d 20 68 65 61 | 70 20 73 69 7a 65 2c 20 |stem hea|p size, |
|00005270| 6f 74 68 65 72 77 69 73 | 65 20 74 68 65 20 76 61 |otherwis|e the va|
|00005280| 6c 75 65 20 61 74 20 24 | 38 36 20 69 73 20 69 67 |lue at $|86 is ig|
|00005290| 6e 6f 72 65 64 2e 20 54 | 68 65 20 24 38 36 20 6c |nored. T|he $86 l|
|000052a0| 6f 63 61 74 69 6f 6e 20 | 6f 6e 6c 79 20 61 70 70 |ocation |only app|
|000052b0| 6c 69 65 73 20 74 6f 20 | 63 6f 6d 70 75 74 65 72 |lies to |computer|
|000052c0| 73 20 77 69 74 68 20 6d | 6f 72 65 20 74 68 61 6e |s with m|ore than|
|000052d0| 20 31 32 38 4b 20 6f 66 | 20 52 41 4d 2e 20 0d 53 | 128K of| RAM. .S|
|000052e0| 65 63 6f 6e 64 61 72 79 | 20 53 6f 75 6e 64 20 61 |econdary| Sound a|
|000052f0| 6e 64 20 56 69 64 65 6f | 20 50 61 67 65 73 0d 41 |nd Video| Pages.A|
|00005300| 6e 6f 74 68 65 72 20 6f | 63 63 61 73 69 6f 6e 61 |nother o|ccasiona|
|00005310| 6c 6c 79 20 75 73 65 66 | 75 6c 20 66 65 61 74 75 |lly usef|ul featu|
|00005320| 72 65 20 6f 66 20 74 68 | 65 20 62 6f 6f 74 20 62 |re of th|e boot b|
|00005330| 6c 6f 63 6b 73 20 69 73 | 20 74 68 65 20 61 62 69 |locks is| the abi|
|00005340| 6c 69 74 79 20 74 6f 20 | 73 70 65 63 69 66 79 20 |lity to |specify |
|00005350| 74 68 61 74 20 74 68 65 | 20 73 65 63 6f 6e 64 61 |that the| seconda|
|00005360| 72 79 20 73 6f 75 6e 64 | 20 61 6e 64 20 76 69 64 |ry sound| and vid|
|00005370| 65 6f 20 70 61 67 65 73 | 20 62 65 20 61 6c 6c 6f |eo pages| be allo|
|00005380| 63 61 74 65 64 20 61 74 | 20 62 6f 6f 74 20 74 69 |cated at| boot ti|
|00005390| 6d 65 2e 20 54 68 69 73 | 20 69 73 20 64 6f 6e 65 |me. This| is done|
|000053a0| 20 62 65 66 6f 72 65 20 | 61 20 64 65 62 75 67 67 | before |a debugg|
|000053b0| 65 72 20 69 73 20 6c 6f | 61 64 65 64 2c 20 73 6f |er is lo|aded, so|
|000053c0| 20 74 68 65 20 64 65 62 | 75 67 67 65 72 20 77 69 | the deb|ugger wi|
|000053d0| 6c 6c 20 6c 6f 61 64 20 | 62 65 6c 6f 77 20 74 68 |ll load |below th|
|000053e0| 65 20 61 6c 74 65 72 6e | 61 74 65 20 73 63 72 65 |e altern|ate scre|
|000053f0| 65 6e 2e 20 54 68 69 73 | 20 69 73 20 75 73 65 66 |en. This| is usef|
|00005400| 75 6c 20 66 6f 72 20 64 | 65 62 75 67 67 69 6e 67 |ul for d|ebugging|
|00005410| 20 73 6f 66 74 77 61 72 | 65 20 74 68 61 74 20 75 | softwar|e that u|
|00005420| 73 65 73 20 74 68 65 20 | 61 6c 74 65 72 6e 61 74 |ses the |alternat|
|00005430| 65 20 76 69 64 65 6f 20 | 70 61 67 65 2c 20 6c 69 |e video |page, li|
|00005440| 6b 65 20 70 61 67 65 2d | 66 6c 69 70 70 69 6e 67 |ke page-|flipping|
|00005450| 20 64 65 6d 6f 73 20 6f | 72 20 67 61 6d 65 73 2e | demos o|r games.|
|00005460| 20 54 6f 20 61 6c 6c 6f | 63 61 74 65 20 74 68 65 | To allo|cate the|
|00005470| 20 73 65 63 6f 6e 64 20 | 76 69 64 65 6f 20 61 6e | second |video an|
|00005480| 64 20 73 6f 75 6e 64 20 | 62 75 66 66 65 72 73 2c |d sound |buffers,|
|00005490| 20 63 68 61 6e 67 65 20 | 74 68 65 20 74 77 6f 20 | change |the two |
|000054a0| 62 79 74 65 73 20 73 74 | 61 72 74 69 6e 67 20 61 |bytes st|arting a|
|000054b0| 74 20 6c 6f 63 61 74 69 | 6f 6e 20 24 38 20 69 6e |t locati|on $8 in|
|000054c0| 20 74 68 65 20 62 6f 6f | 74 20 62 6c 6f 63 6b 73 | the boo|t blocks|
|000054d0| 2e 20 43 68 61 6e 67 65 | 20 74 68 65 20 76 61 6c |. Change| the val|
|000054e0| 75 65 20 28 6e 6f 72 6d | 61 6c 6c 79 20 30 29 20 |ue (norm|ally 0) |
|000054f0| 74 6f 20 61 20 6e 65 67 | 61 74 69 76 65 20 6e 75 |to a neg|ative nu|
|00005500| 6d 62 65 72 20 28 24 46 | 46 46 46 29 20 74 6f 20 |mber ($F|FFF) to |
|00005510| 61 6c 6c 6f 63 61 74 65 | 20 62 6f 74 68 20 76 69 |allocate| both vi|
|00005520| 64 65 6f 20 61 6e 64 20 | 73 6f 75 6e 64 20 62 75 |deo and |sound bu|
|00005530| 66 66 65 72 73 2e 20 43 | 68 61 6e 67 65 20 74 68 |ffers. C|hange th|
|00005540| 65 20 76 61 6c 75 65 20 | 74 6f 20 61 20 70 6f 73 |e value |to a pos|
|00005550| 69 74 69 76 65 20 6e 75 | 6d 62 65 72 20 28 24 30 |itive nu|mber ($0|
|00005560| 30 30 31 29 20 74 6f 20 | 61 6c 6c 6f 63 61 74 65 |001) to |allocate|
|00005570| 20 6f 6e 6c 79 20 74 68 | 65 20 73 65 63 6f 6e 64 | only th|e second|
|00005580| 61 72 79 20 73 6f 75 6e | 64 20 62 75 66 66 65 72 |ary soun|d buffer|
|00005590| 2e 0d 57 61 72 6e 69 6e | 67 3a 09 4d 61 63 73 42 |..Warnin|g:.MacsB|
|000055a0| 75 67 20 6d 61 79 20 6e | 6f 74 20 77 6f 72 6b 20 |ug may n|ot work |
|000055b0| 70 72 6f 70 65 72 6c 79 | 20 69 66 20 79 6f 75 20 |properly| if you |
|000055c0| 61 6c 6c 6f 63 61 74 65 | 20 61 64 64 69 74 69 6f |allocate| additio|
|000055d0| 6e 61 6c 20 70 61 67 65 | 73 20 66 6f 72 20 73 6f |nal page|s for so|
|000055e0| 75 6e 64 20 61 6e 64 20 | 76 69 64 65 6f 2e 0d 46 |und and |video..F|
|000055f0| 75 72 74 68 65 72 20 52 | 65 66 65 72 65 6e 63 65 |urther R|eference|
|00005600| 3a 0d a5 09 54 68 65 20 | 53 65 67 6d 65 6e 74 20 |:...The |Segment |
|00005610| 4c 6f 61 64 65 72 0d 48 | 61 72 64 20 44 69 73 6b |Loader.H|ard Disk|
|00005620| 20 4d 65 64 69 63 20 26 | 20 42 6f 6f 74 69 6e 67 | Medic &| Booting|
|00005630| 20 43 61 6d 70 0d 46 69 | 6c 65 73 09 09 4d 2e 46 | Camp.Fi|les..M.F|
|00005640| 4c 2e 44 69 73 6b 4d 65 | 64 69 63 0d 52 65 76 69 |L.DiskMe|dic.Revi|
|00005650| 73 65 64 20 62 79 3a 09 | 09 4d 61 72 63 68 20 31 |sed by:.|.March 1|
|00005660| 39 38 38 0d 57 72 69 74 | 74 65 6e 20 62 79 3a 09 |988.Writ|ten by:.|
|00005670| 42 6f 62 20 4a 6f 68 6e | 73 6f 6e 09 4a 75 6c 79 |Bob John|son.July|
|00005680| 20 31 39 38 37 0d 54 68 | 65 20 64 65 61 74 68 20 | 1987.Th|e death |
|00005690| 6f 66 20 61 20 68 61 72 | 64 20 64 69 73 6b 20 77 |of a har|d disk w|
|000056a0| 69 74 68 20 6d 65 67 61 | 62 79 74 65 73 20 77 6f |ith mega|bytes wo|
|000056b0| 72 74 68 20 6f 66 20 64 | 61 74 61 20 63 61 6e 20 |rth of d|ata can |
|000056c0| 62 65 20 65 78 63 65 65 | 64 69 6e 67 6c 79 20 74 |be excee|dingly t|
|000056d0| 72 61 75 6d 61 74 69 63 | 2e 20 54 68 69 73 20 74 |raumatic|. This t|
|000056e0| 65 63 68 6e 69 63 61 6c | 20 6e 6f 74 65 20 77 69 |echnical| note wi|
|000056f0| 6c 6c 20 64 65 73 63 72 | 69 62 65 20 74 65 63 68 |ll descr|ibe tech|
|00005700| 6e 69 71 75 65 73 20 66 | 6f 72 20 72 65 63 6f 76 |niques f|or recov|
|00005710| 65 72 69 6e 67 20 61 20 | 68 61 72 64 20 64 69 73 |ering a |hard dis|
|00005720| 6b 20 61 6e 64 20 74 68 | 65 20 64 61 74 61 20 74 |k and th|e data t|
|00005730| 68 61 74 20 69 73 20 6f | 6e 20 69 74 2e 20 54 68 |hat is o|n it. Th|
|00005740| 65 20 64 69 73 63 75 73 | 73 69 6f 6e 20 77 69 6c |e discus|sion wil|
|00005750| 6c 20 61 6c 73 6f 20 69 | 6e 63 6c 75 64 65 20 73 |l also i|nclude s|
|00005760| 6f 6d 65 20 74 69 70 73 | 20 6f 6e 20 68 6f 77 20 |ome tips| on how |
|00005770| 74 6f 20 61 76 6f 69 64 | 20 70 72 6f 62 6c 65 6d |to avoid| problem|
|00005780| 73 2e 0d 59 6f 75 20 73 | 68 6f 75 6c 64 20 6e 65 |s..You s|hould ne|
|00005790| 76 65 72 20 6e 65 65 64 | 20 74 68 69 73 20 69 6e |ver need| this in|
|000057a0| 66 6f 72 6d 61 74 69 6f | 6e 2e 20 48 6f 77 65 76 |formatio|n. Howev|
|000057b0| 65 72 2c 20 73 6f 66 74 | 77 61 72 65 20 70 72 6f |er, soft|ware pro|
|000057c0| 62 6c 65 6d 73 20 63 61 | 6e 20 77 72 65 61 6b 20 |blems ca|n wreak |
|000057d0| 68 61 76 6f 63 20 75 70 | 6f 6e 20 6f 74 68 65 72 |havoc up|on other|
|000057e0| 77 69 73 65 20 66 75 6e | 63 74 69 6f 6e 61 6c 20 |wise fun|ctional |
|000057f0| 64 69 73 6b 73 2e 20 57 | 68 65 6e 20 74 68 65 79 |disks. W|hen they|
|00005800| 20 68 61 76 65 20 74 68 | 65 20 65 71 75 69 76 61 | have th|e equiva|
|00005810| 6c 65 6e 74 20 6f 66 20 | 61 20 68 65 61 72 74 20 |lent of |a heart |
|00005820| 61 74 74 61 63 6b 2c 20 | 74 68 65 72 65 20 61 72 |attack, |there ar|
|00005830| 65 20 61 20 6e 75 6d 62 | 65 72 20 6f 66 20 73 74 |e a numb|er of st|
|00005840| 65 70 73 20 74 68 61 74 | 20 63 61 6e 20 62 65 20 |eps that| can be |
|00005850| 74 61 6b 65 6e 20 74 6f | 20 74 72 79 20 74 6f 20 |taken to| try to |
|00005860| 72 65 63 6f 76 65 72 20 | 74 68 65 20 64 69 73 6b |recover |the disk|
|00005870| 2e 20 54 68 65 72 65 20 | 61 72 65 20 6f 63 63 61 |. There |are occa|
|00005880| 73 69 6f 6e 73 20 77 68 | 65 6e 20 74 68 65 20 64 |sions wh|en the d|
|00005890| 69 73 6b 20 69 74 73 65 | 6c 66 20 69 73 20 6e 6f |isk itse|lf is no|
|000058a0| 74 20 62 61 64 2c 20 61 | 6e 64 20 69 74 20 6d 61 |t bad, a|nd it ma|
|000058b0| 79 20 62 65 20 70 6f 73 | 73 69 62 6c 65 20 74 6f |y be pos|sible to|
|000058c0| 20 63 6f 72 72 65 63 74 | 20 74 68 65 20 64 69 73 | correct| the dis|
|000058d0| 6b 20 77 69 74 68 6f 75 | 74 20 68 61 76 69 6e 67 |k withou|t having|
|000058e0| 20 74 6f 20 72 65 66 6f | 72 6d 61 74 20 74 68 65 | to refo|rmat the|
|000058f0| 20 64 69 73 6b 20 61 6e | 64 20 72 65 73 74 6f 72 | disk an|d restor|
|00005900| 65 20 74 68 65 20 64 61 | 74 61 20 66 72 6f 6d 20 |e the da|ta from |
|00005910| 61 20 62 61 63 6b 75 70 | 2e 20 54 68 69 73 20 6e |a backup|. This n|
|00005920| 6f 74 65 20 77 69 6c 6c | 20 64 65 73 63 72 69 62 |ote will| describ|
|00005930| 65 20 73 6f 6d 65 20 6f | 66 20 74 68 65 20 73 74 |e some o|f the st|
|00005940| 65 70 73 20 74 68 61 74 | 20 63 61 6e 20 62 65 20 |eps that| can be |
|00005950| 75 73 65 64 20 77 69 74 | 68 20 41 70 70 6c 65 20 |used wit|h Apple |
|00005960| 48 61 72 64 20 44 69 73 | 6b 73 2c 20 62 75 74 20 |Hard Dis|ks, but |
|00005970| 6d 6f 73 74 20 6f 66 20 | 74 68 65 20 69 6e 66 6f |most of |the info|
|00005980| 72 6d 61 74 69 6f 6e 20 | 70 65 72 74 61 69 6e 73 |rmation |pertains|
|00005990| 20 74 6f 20 61 6c 6c 20 | 68 61 72 64 20 64 69 73 | to all |hard dis|
|000059a0| 6b 73 2e 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |ks. For |example,|
|000059b0| 20 74 68 65 20 48 44 20 | 53 43 20 53 65 74 75 70 | the HD |SC Setup|
|000059c0| 20 70 72 6f 67 72 61 6d | 20 69 73 20 73 70 65 63 | program| is spec|
|000059d0| 69 66 69 63 20 74 6f 20 | 74 68 65 20 41 70 70 6c |ific to |the Appl|
|000059e0| 65 20 64 72 69 76 65 73 | 2c 20 62 75 74 20 74 68 |e drives|, but th|
|000059f0| 65 72 65 20 69 73 20 70 | 72 6f 62 61 62 6c 79 20 |ere is p|robably |
|00005a00| 61 20 73 69 6d 69 6c 61 | 72 20 75 74 69 6c 69 74 |a simila|r utilit|
|00005a10| 79 20 66 6f 72 20 65 76 | 65 72 79 20 68 61 72 64 |y for ev|ery hard|
|00005a20| 20 64 69 73 6b 2e 20 54 | 68 69 73 20 69 73 20 70 | disk. T|his is p|
|00005a30| 72 69 6d 61 72 69 6c 79 | 20 61 20 64 69 73 63 75 |rimarily| a discu|
|00005a40| 73 73 69 6f 6e 20 6f 66 | 20 77 68 61 74 20 74 6f |ssion of| what to|
|00005a50| 20 64 6f 20 66 72 6f 6d | 20 74 68 65 20 75 73 65 | do from| the use|
|00005a60| 72 20 73 74 61 6e 64 70 | 6f 69 6e 74 2c 20 62 75 |r standp|oint, bu|
|00005a70| 74 20 74 68 65 72 65 20 | 61 72 65 20 61 20 66 65 |t there |are a fe|
|00005a80| 77 20 73 75 67 67 65 73 | 74 69 6f 6e 73 20 6f 6e |w sugges|tions on|
|00005a90| 20 77 61 79 73 20 6f 66 | 20 72 65 74 72 69 65 76 | ways of| retriev|
|00005aa0| 69 6e 67 20 64 61 74 61 | 20 76 69 61 20 70 72 6f |ing data| via pro|
|00005ab0| 67 72 61 6d 6d 61 74 69 | 63 20 6d 65 61 6e 73 2e |grammati|c means.|
|00005ac0| 0d 54 68 69 73 20 64 69 | 73 63 75 73 73 69 6f 6e |.This di|scussion|
|00005ad0| 20 77 69 6c 6c 20 66 6f | 63 75 73 20 6f 6e 20 74 | will fo|cus on t|
|00005ae0| 68 65 20 53 43 53 49 20 | 64 69 73 6b 73 20 73 69 |he SCSI |disks si|
|00005af0| 6e 63 65 20 74 68 65 79 | 20 61 72 65 20 6d 6f 72 |nce they| are mor|
|00005b00| 65 20 63 6f 6d 70 6c 65 | 78 20 69 6e 20 74 65 72 |e comple|x in ter|
|00005b10| 6d 73 20 6f 66 20 74 68 | 65 20 62 6f 6f 74 69 6e |ms of th|e bootin|
|00005b20| 67 20 73 65 71 75 65 6e | 63 65 2e 20 46 6f 72 20 |g sequen|ce. For |
|00005b30| 6f 74 68 65 72 20 68 61 | 72 64 20 64 69 73 6b 73 |other ha|rd disks|
|00005b40| 2c 20 6c 69 6b 65 20 74 | 68 65 20 73 74 61 6e 64 |, like t|he stand|
|00005b50| 61 72 64 20 48 44 2d 32 | 30 2c 20 6d 6f 73 74 20 |ard HD-2|0, most |
|00005b60| 6f 66 20 74 68 65 20 69 | 6e 66 6f 72 6d 61 74 69 |of the i|nformati|
|00005b70| 6f 6e 20 73 74 69 6c 6c | 20 61 70 70 6c 69 65 73 |on still| applies|
|00005b80| 2c 20 62 75 74 20 53 43 | 53 49 2d 73 70 65 63 69 |, but SC|SI-speci|
|00005b90| 66 69 63 20 73 65 71 75 | 65 6e 63 65 73 20 63 61 |fic sequ|ences ca|
|00005ba0| 6e 20 62 65 20 69 67 6e | 6f 72 65 64 2e 20 46 6f |n be ign|ored. Fo|
|00005bb0| 72 20 65 78 61 6d 70 6c | 65 2c 20 74 68 65 20 73 |r exampl|e, the s|
|00005bc0| 74 61 6e 64 61 72 64 20 | 48 44 2d 32 30 20 61 6c |tandard |HD-20 al|
|00005bd0| 73 6f 20 68 61 73 20 61 | 6e 20 69 6e 73 74 61 6c |so has a|n instal|
|00005be0| 6c 65 72 20 70 72 6f 67 | 72 61 6d 2c 20 61 6c 74 |ler prog|ram, alt|
|00005bf0| 68 6f 75 67 68 20 69 74 | 20 69 73 20 64 69 66 66 |hough it| is diff|
|00005c00| 65 72 65 6e 74 20 74 68 | 61 6e 20 48 44 20 53 43 |erent th|an HD SC|
|00005c10| 20 53 65 74 75 70 2e 0d | 41 74 74 61 63 6b 20 6f | Setup..|Attack o|
|00005c20| 66 20 74 68 65 20 4e 61 | 73 74 69 65 73 0d 54 68 |f the Na|sties.Th|
|00005c30| 65 72 65 20 61 72 65 20 | 61 20 6e 75 6d 62 65 72 |ere are |a number|
|00005c40| 20 6f 66 20 75 6e 75 73 | 75 61 6c 20 63 6f 6e 64 | of unus|ual cond|
|00005c50| 69 74 69 6f 6e 73 20 74 | 68 61 74 20 61 20 68 61 |itions t|hat a ha|
|00005c60| 72 64 20 64 69 73 6b 20 | 6d 61 79 20 67 65 74 20 |rd disk |may get |
|00005c70| 69 74 73 65 6c 66 20 69 | 6e 3a 0d 09 31 29 20 54 |itself i|n:..1) T|
|00005c80| 68 65 20 64 61 74 61 20 | 69 73 20 69 6e 74 61 63 |he data |is intac|
|00005c90| 74 2c 20 62 75 74 20 74 | 68 65 20 68 61 72 64 20 |t, but t|he hard |
|00005ca0| 64 69 73 6b 20 77 6f 6e | d5 74 20 62 6f 6f 74 2e |disk won|.t boot.|
|00005cb0| 0d 09 32 29 20 54 68 65 | 20 53 43 53 49 20 64 69 |..2) The| SCSI di|
|00005cc0| 73 6b 20 77 6f 6e d5 74 | 20 62 6f 6f 74 20 61 6e |sk won.t| boot an|
|00005cd0| 64 20 6f 6e 6c 79 20 73 | 68 6f 77 73 20 75 70 20 |d only s|hows up |
|00005ce0| 61 66 74 65 72 20 72 75 | 6e 6e 69 6e 67 20 48 44 |after ru|nning HD|
|00005cf0| 20 53 43 20 53 65 74 75 | 70 2e 0d 09 33 29 20 54 | SC Setu|p...3) T|
|00005d00| 68 65 20 64 69 73 6b 20 | 77 69 6c 6c 20 62 6f 6f |he disk |will boo|
|00005d10| 74 20 62 75 74 20 68 61 | 6e 67 73 20 70 61 72 74 |t but ha|ngs part|
|00005d20| 20 77 61 79 20 74 68 72 | 6f 75 67 68 20 74 68 65 | way thr|ough the|
|00005d30| 20 62 6f 6f 74 20 70 72 | 6f 63 65 73 73 2e 0d 09 | boot pr|ocess...|
|00005d40| 34 29 20 54 68 65 72 65 | 20 61 72 65 20 64 61 74 |4) There| are dat|
|00005d50| 61 20 65 72 72 6f 72 73 | 20 77 68 69 6c 65 20 74 |a errors| while t|
|00005d60| 68 65 20 64 69 73 6b 20 | 69 73 20 72 75 6e 6e 69 |he disk |is runni|
|00005d70| 6e 67 2e 0d 09 35 29 20 | 54 68 65 20 64 69 73 6b |ng...5) |The disk|
|00005d80| 20 69 73 20 76 65 72 79 | 20 73 6c 6f 77 20 72 65 | is very| slow re|
|00005d90| 74 75 72 6e 69 6e 67 20 | 74 6f 20 74 68 65 20 46 |turning |to the F|
|00005da0| 69 6e 64 65 72 2e 0d 09 | 36 29 20 54 68 65 20 63 |inder...|6) The c|
|00005db0| 6f 6d 70 75 74 65 72 20 | 63 72 61 73 68 65 73 20 |omputer |crashes |
|00005dc0| 6f 72 20 68 61 6e 67 73 | 20 77 68 65 6e 20 72 65 |or hangs| when re|
|00005dd0| 74 75 72 6e 69 6e 67 20 | 74 6f 20 74 68 65 20 46 |turning |to the F|
|00005de0| 69 6e 64 65 72 2e 0d 09 | 37 29 20 54 68 65 20 64 |inder...|7) The d|
|00005df0| 69 73 6b 20 61 70 70 65 | 61 72 73 20 69 6e 20 61 |isk appe|ars in a|
|00005e00| 20 d2 54 68 69 73 20 64 | 69 73 6b 20 69 73 20 62 | .This d|isk is b|
|00005e10| 61 64 d3 20 64 69 61 6c | 6f 67 2e 0d 09 38 29 20 |ad. dial|og...8) |
|00005e20| 54 68 65 20 64 69 73 6b | 20 6e 65 76 65 72 20 73 |The disk| never s|
|00005e30| 68 6f 77 73 20 75 70 20 | 61 74 20 61 6c 6c 2e 0d |hows up |at all..|
|00005e40| 54 68 65 73 65 20 70 72 | 6f 62 6c 65 6d 73 20 63 |These pr|oblems c|
|00005e50| 61 6e 20 64 65 76 65 6c | 6f 70 20 66 72 6f 6d 20 |an devel|op from |
|00005e60| 61 20 6e 75 6d 62 65 72 | 20 6f 66 20 73 6f 75 72 |a number| of sour|
|00005e70| 63 65 73 2c 20 69 6e 63 | 6c 75 64 69 6e 67 20 73 |ces, inc|luding s|
|00005e80| 79 73 74 65 6d 20 63 72 | 61 73 68 65 73 2c 20 72 |ystem cr|ashes, r|
|00005e90| 65 62 6f 6f 74 69 6e 67 | 20 61 74 20 62 61 64 20 |ebooting| at bad |
|00005ea0| 74 69 6d 65 73 2c 20 70 | 6f 77 65 72 20 66 6c 75 |times, p|ower flu|
|00005eb0| 63 74 75 61 74 69 6f 6e | 73 2c 20 6d 61 6c 69 63 |ctuation|s, malic|
|00005ec0| 69 6f 75 73 20 73 6f 66 | 74 77 61 72 65 2c 20 6f |ious sof|tware, o|
|00005ed0| 6c 64 20 73 6f 66 74 77 | 61 72 65 2c 20 62 75 67 |ld softw|are, bug|
|00005ee0| 67 79 20 73 6f 66 74 77 | 61 72 65 2c 20 65 74 63 |gy softw|are, etc|
|00005ef0| 2e 20 49 6e 20 67 65 6e | 65 72 61 6c 2c 20 74 68 |. In gen|eral, th|
|00005f00| 65 73 65 20 70 72 6f 62 | 6c 65 6d 73 20 77 69 6c |ese prob|lems wil|
|00005f10| 6c 20 62 65 20 73 6f 66 | 74 77 61 72 65 2d 72 65 |l be sof|tware-re|
|00005f20| 6c 61 74 65 64 2c 20 73 | 69 6e 63 65 20 74 68 65 |lated, s|ince the|
|00005f30| 20 68 61 72 64 77 61 72 | 65 20 69 74 73 65 6c 66 | hardwar|e itself|
|00005f40| 20 69 73 20 76 65 72 79 | 20 72 61 72 65 6c 79 20 | is very| rarely |
|00005f50| 64 65 66 65 63 74 69 76 | 65 2e 0d 54 68 69 73 20 |defectiv|e..This |
|00005f60| 74 65 63 68 6e 69 63 61 | 6c 20 6e 6f 74 65 20 77 |technica|l note w|
|00005f70| 69 6c 6c 20 64 69 73 63 | 75 73 73 3a 0d 31 29 09 |ill disc|uss:.1).|
|00005f80| 54 68 65 20 6e 6f 72 6d | 61 6c 20 73 74 61 67 65 |The norm|al stage|
|00005f90| 73 20 69 6e 20 74 68 65 | 20 62 6f 6f 74 69 6e 67 |s in the| booting|
|00005fa0| 20 70 72 6f 63 65 73 73 | 2e 0d 32 29 09 52 65 73 | process|..2).Res|
|00005fb0| 75 6c 74 73 20 6f 66 20 | 65 72 72 6f 72 73 20 64 |ults of |errors d|
|00005fc0| 75 72 69 6e 67 20 74 68 | 65 20 76 61 72 69 6f 75 |uring th|e variou|
|00005fd0| 73 20 73 74 61 67 65 73 | 20 69 6e 20 74 68 65 20 |s stages| in the |
|00005fe0| 62 6f 6f 74 69 6e 67 20 | 70 72 6f 63 65 73 73 2e |booting |process.|
|00005ff0| 0d 33 29 09 41 20 73 74 | 65 70 2d 62 79 2d 73 74 |.3).A st|ep-by-st|
|00006000| 65 70 20 70 72 6f 63 65 | 64 75 72 65 20 74 6f 20 |ep proce|dure to |
|00006010| 66 6f 6c 6c 6f 77 20 69 | 6e 20 6f 72 64 65 72 20 |follow i|n order |
|00006020| 74 6f 20 6d 61 78 69 6d | 69 7a 65 20 79 6f 75 72 |to maxim|ize your|
|00006030| 20 63 68 61 6e 63 65 73 | 20 6f 66 20 72 65 63 6f | chances| of reco|
|00006040| 76 65 72 69 6e 67 20 74 | 68 65 20 09 64 69 73 6b |vering t|he .disk|
|00006050| 20 61 6e 64 20 74 68 65 | 20 64 61 74 61 2e 0d 41 | and the| data..A|
|00006060| 20 42 6f 6f 74 20 74 6f | 20 74 68 65 20 48 65 61 | Boot to| the Hea|
|00006070| 64 0d 54 68 69 73 20 64 | 69 73 63 75 73 73 69 6f |d.This d|iscussio|
|00006080| 6e 20 77 69 6c 6c 20 64 | 65 74 61 69 6c 20 61 20 |n will d|etail a |
|00006090| 6e 6f 72 6d 61 6c 20 62 | 6f 6f 74 20 70 72 6f 63 |normal b|oot proc|
|000060a0| 65 73 73 20 6f 66 20 61 | 20 4d 61 63 69 6e 74 6f |ess of a| Macinto|
|000060b0| 73 68 20 77 69 74 68 20 | 61 20 73 69 6e 67 6c 65 |sh with |a single|
|000060c0| 20 68 61 72 64 20 64 69 | 73 6b 20 61 74 74 61 63 | hard di|sk attac|
|000060d0| 68 65 64 2e 20 46 6f 72 | 20 63 6c 61 72 69 74 79 |hed. For| clarity|
|000060e0| 2c 20 74 68 69 73 20 73 | 65 63 74 69 6f 6e 20 77 |, this s|ection w|
|000060f0| 69 6c 6c 20 64 65 6c 69 | 62 65 72 61 74 65 6c 79 |ill deli|berately|
|00006100| 20 69 67 6e 6f 72 65 20 | 70 6f 74 65 6e 74 69 61 | ignore |potentia|
|00006110| 6c 20 70 72 6f 62 6c 65 | 6d 73 20 61 6e 64 20 74 |l proble|ms and t|
|00006120| 68 65 20 63 6f 6d 70 6c | 65 78 69 74 69 65 73 20 |he compl|exities |
|00006130| 69 6e 76 6f 6c 76 65 64 | 20 69 6e 20 64 69 66 66 |involved| in diff|
|00006140| 65 72 65 6e 74 20 63 6f | 6e 66 69 67 75 72 61 74 |erent co|nfigurat|
|00006150| 69 6f 6e 73 2e 20 54 68 | 65 20 66 6f 6c 6c 6f 77 |ions. Th|e follow|
|00006160| 69 6e 67 20 73 65 63 74 | 69 6f 6e 73 20 77 69 6c |ing sect|ions wil|
|00006170| 6c 20 64 65 74 61 69 6c | 20 73 6f 6d 65 20 65 72 |l detail| some er|
|00006180| 72 6f 72 73 20 74 68 61 | 74 20 6d 61 79 20 6f 63 |rors tha|t may oc|
|00006190| 63 75 72 2c 20 61 6e 64 | 20 67 69 76 65 20 6d 6f |cur, and| give mo|
|000061a0| 72 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 69 |re infor|mation i|
|000061b0| 6e 20 74 65 72 6d 73 20 | 6f 66 20 77 68 61 74 20 |n terms |of what |
|000061c0| 74 68 65 20 52 4f 4d 20 | 77 69 6c 6c 20 64 6f 20 |the ROM |will do |
|000061d0| 74 6f 20 62 6f 6f 74 20 | 74 68 65 20 73 79 73 74 |to boot |the syst|
|000061e0| 65 6d 2e 20 41 20 53 43 | 53 49 20 64 69 73 6b 20 |em. A SC|SI disk |
|000061f0| 63 61 6e 20 62 65 20 74 | 68 6f 75 67 68 74 20 6f |can be t|hought o|
|00006200| 66 20 69 6e 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |f in the| followi|
|00006210| 6e 67 20 66 61 73 68 69 | 6f 6e 3a 0d 54 68 65 20 |ng fashi|on:.The |
|00006220| 69 6d 70 6f 72 74 61 6e | 74 20 74 68 69 6e 67 20 |importan|t thing |
|00006230| 74 6f 20 6e 6f 74 65 20 | 66 72 6f 6d 20 74 68 69 |to note |from thi|
|00006240| 73 20 64 69 61 67 72 61 | 6d 20 69 73 20 74 68 61 |s diagra|m is tha|
|00006250| 74 20 74 68 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |t the Ma|cintosh |
|00006260| 76 6f 6c 75 6d 65 20 69 | 73 20 61 20 73 75 62 73 |volume i|s a subs|
|00006270| 65 74 20 6f 66 20 74 68 | 65 20 65 6e 74 69 72 65 |et of th|e entire|
|00006280| 20 53 43 53 49 20 44 69 | 73 6b 2e 20 54 68 65 72 | SCSI Di|sk. Ther|
|00006290| 65 20 63 61 6e 20 62 65 | 20 6d 6f 72 65 20 74 68 |e can be| more th|
|000062a0| 61 6e 20 6f 6e 65 20 4d | 61 63 69 6e 74 6f 73 68 |an one M|acintosh|
|000062b0| 20 76 6f 6c 75 6d 65 20 | 6f 6e 20 61 20 67 69 76 | volume |on a giv|
|000062c0| 65 6e 20 64 69 73 6b 2c | 20 6f 72 20 65 76 65 6e |en disk,| or even|
|000062d0| 20 6f 74 68 65 72 20 76 | 6f 6c 75 6d 65 73 20 74 | other v|olumes t|
|000062e0| 68 61 74 20 61 72 65 20 | 6e 6f 74 20 4d 61 63 69 |hat are |not Maci|
|000062f0| 6e 74 6f 73 68 20 76 6f | 6c 75 6d 65 73 2e 0d 31 |ntosh vo|lumes..1|
|00006300| 29 20 43 68 65 63 6b 20 | 74 68 65 20 53 43 53 49 |) Check |the SCSI|
|00006310| 20 70 6f 72 74 3a 0d 49 | 6d 6d 65 64 69 61 74 65 | port:.I|mmediate|
|00006320| 6c 79 20 61 66 74 65 72 | 20 74 68 65 20 52 41 4d |ly after| the RAM|
|00006330| 20 63 68 65 63 6b 2c 20 | 74 68 65 20 73 79 73 74 | check, |the syst|
|00006340| 65 6d 20 6c 6f 6f 6b 73 | 20 61 74 20 74 68 65 20 |em looks| at the |
|00006350| 53 43 53 49 20 70 6f 72 | 74 20 74 6f 20 73 65 65 |SCSI por|t to see|
|00006360| 20 69 66 20 74 68 65 72 | 65 20 61 72 65 20 61 6e | if ther|e are an|
|00006370| 79 20 64 72 69 76 65 73 | 20 63 6f 6e 6e 65 63 74 |y drives| connect|
|00006380| 65 64 2e 20 49 66 20 61 | 20 53 43 53 49 20 64 72 |ed. If a| SCSI dr|
|00006390| 69 76 65 20 69 73 20 66 | 6f 75 6e 64 20 74 68 65 |ive is f|ound the|
|000063a0| 20 73 79 73 74 65 6d 20 | 72 65 61 64 73 20 74 68 | system |reads th|
|000063b0| 65 20 53 43 53 49 20 70 | 61 72 74 69 74 69 6f 6e |e SCSI p|artition|
|000063c0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 69 6e 20 | informa|tion in |
|000063d0| 62 6c 6f 63 6b 20 30 2e | 20 54 68 69 73 20 62 6c |block 0.| This bl|
|000063e0| 6f 63 6b 20 69 73 20 73 | 70 65 63 69 66 69 63 20 |ock is s|pecific |
|000063f0| 74 6f 20 53 43 53 49 20 | 64 72 69 76 65 73 20 61 |to SCSI |drives a|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.